p4 logrotate

Rotate one or more structured log P4 Server supports the standard log, which is human-readable, as well as structured logs in a comma-separated value (CSV) format. The P4LOG environment variable specifies the log file for events, including errors. The human-readable P4AUDIT environment variable specifies the log file that records file transfers to users. Structured log files are typically processed by external tools. To learn more, see 'Logging" in P4 Server Administration Documentation. files.

Syntax

p4 [g-opts] logrotate [-l logname]

Syntax conventions

Description

The p4 logrotate command rotates the named logfile, or rotates all structured logs if the -l logname option is not supplied.

If the relevant configurables are set, structured log files automatically rotate when they grow to serverlog.maxmb.n megabytes in length, and the past serverlog.retain.n log files are preserved.

By default, structured logs have no maximum size limit, and automatically rotate only on checkpointing and journaling events.

Options

-l logname

Rotate the log named logname.

g-opts

See Global options.

Usage notes

Can File Arguments Use Revision Specifier? Can File Arguments Use Revision Range? Minimal Access Level Required

N/A

N/A

super

available to an operator user