Logging and structured log files
Helix server
can be configured to write log files in a structured (.csv
)
format.
Structured log files:
- contain more detail than conventional log files
-
make it easier to import the data into other tools, such as spreadsheets, for further reporting and detailed analysis
The Logging commands help you work with structured log files.
All p4d
error and info logs are in UTF8 for a
server in unicode mode. You need an UTF8 console or editor to properly
render this log information.
For more details, see the Knowledge Base article, "Structured Server Logs".
- 2020.1 Structured logging improvements:
- All event types have a new version
50
, which adds a unique command identifier and the currentserverId
after the command number field (5th column). - For commands that result in log events being written on multiple servers, the unique command identifier propagates across the server to allow those events to be matched. Examples include submits from edge servers, replica forwarded commands, remote depot access, and P4AUTH.
- The
11.50
trigger event type has two additional fields:- a trigger type of 'trigger', 'extension' or 'bgtask'
- an execution lapse time
- trigger arguments are now separated by the colon
:
character to match the command arguments format. - The
serverlog.version.N
configurable can be used to pin a structured log file to a specific server version's format. For example:- to retain the 2019.2 structured log events format, set this configurable to
49
- to retain the format of 2019.1, set this configurable to
48
.
- to retain the 2019.2 structured log events format, set this configurable to
- All event types have a new version
- To see the protocol levels for every release, see Protocol levels of server and client by release .
Examples of possible log entries
The following is a subset of possible log entries:
Entry | Meaning |
---|---|
rmt-Journal
|
Used by a p4 pull thread on a replica server to retrieve journal records that contain metadata from a master.
|
rmt-FileFetch
|
Used by
|
Monitor or log entries |
Processes spawned by parallel sync, submit, or shelve that transfer batches of files in parallel. The arguments correspond to the
|