Logging commands

You can use the following commands to work with logs and structured logs.

Command Meaning

p4 logappend

If the user log is enabled, write an entry to user.csv.

p4 logparse

Parse a structured log file and return the logged data in tagged format

p4 logrotate

Rotate a named logfile, or, if no name is specified, all server logs. This command applies only to structured logs; it does not rotate the unstructured P4LOG or P4AUDIT logs.

p4 logschema

Return a description of the specified log record type.

p4 logstat

Report the file size of the journal (P4JOURNAL, error log (P4LOG), audit log (P4AUDIT), or the named structured log file.

p4 logtail

Output the last block of the error log (P4LOG).

For information about logging to a single file, see P4LOG in Helix Core Command-Line (P4) Reference.

For information about structured logs, see Structured logs.