Viewing Logs¶
Once a file name is known, the particular log can be viewed with log view <logfile>. For example: log view process/mongodb.router.log.
When the log file is viewed, it can be searched for a particular regular expression using the forward slash /, as when using the less command.
A log file can also be watched or followed with log follow <logfile> The Unix command equivalent is: tail –f, so quit with Ctrl-C.
Log entries in the voss-deviceapi/
directory have key-value pairs.
The keys are as follows:
hostname
- the hostname of the serverlevel
- debug levelmessage
- the actual log messagename
- module where log occurredparent process id
- Linux process parent idprocess id
- Linux process idrequest uuid
- identifier to group all logs generated in a request.user
- user that generated the loguser hierarchy
- user that generated the log’s hierarchy.txn_id
- in logs that generate transactions (e.g. not inrequest.log
) - the transaction uuidtxn_seq_id
- in logs that generate transactions (e.g. not inrequest.log
) - transaction ID as seen in the Admin Portaltoplevel_txn_seq_id
- in logs that generate transactions (e.g. not inrequest.log
) - toplevel transaction ID
Note that the system will attempt to auto-complete the prefix if it uniquely identifies a file, for example:
log view process/nginx