p4 logschema
Describe the schema of structured log record types.
Syntax
p4 [g-opts] logschema [-A] -a
p4 [g-opts] logschema [-A] recordtype
Description
This command returns a description of structured log record types in tagged format.
The output of p4 logschema -a returns the current version of the specification of all known log record types.
The output of p4 logschema recordtype returns the current version of the specification of the specified log record type.
The output of p4 logschema -A -a returns all versions of the specification of all known log record types.
The output of p4 logschema -A recordtype returns the specification of every version of the specified log record type.
See also:
- "Logging and structured log files" in Helix Core Server Administrator Guide, including the list of structured log file names at Enabling structured logging.
- the Perforce Knowledge Base article, Structured Server Logs.
Options
|
Display the current version of the specification of every known log record type. |
|
Display all versions of the specification of every know log record type. |
recordtype |
Display the current version of the specification for the specified log record type if used without -A. Display all version of the specification for the specified log record type if used with -A. |
|
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 |
available to an operator user |
Examples
|
Display the tagged output for the CommandStart record type of the |
p4 logschema -A 0 |
Display all versions for the tagged output for the CommandStart record type, which includes both:
|
|
Display the tagged output for the CommandEnd record type of the |
|
Display the tagged output for the Audit record type of the audit.csv log file. |
Related commands
Parse a structured log file and return log data. |