p4 logrotate

Rotate one or more structured log Helix Core Server supports human-readable logs as well as structured logs in a comma-separated value (CSV) format. The human-readable P4LOG environment variable specifies the log file for errors. The human-readable P4AUDIT environment variable specifies the log file that records file transfers to users. Structured log files are for many purposes. To learn more, see 'Logging" in Helix Core 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