Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

P4 Server Administration Documentation | 2025.1

# Logging commands

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

Command | Meaning
--- | ---
`p4 logappend` | If the user log is enabled, write an entry to any structured log file that includes user log events, such as `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 human-readable logs specified by `P4LOG` and `P4AUDIT`.
`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 the P4 CLI Reference.

For information about structured logs, see Structured logs.

Your search for returned results