Chapter 80. Checking Service Logs
Important
Do not confuse instance logs with service logs of the manager and agents.
The manager and agent services can send each other service messages during operation. Logging of these messages is configured in the manager and agent configuration files, respectively.
Viewing Service Logs #
To view service logs:
Connect via SSH to the server where the manager or agent of interest is installed.
If the
log.fileconfiguration file parameter is not specified, the log is written to the standard output (stdout).If systemd is configured to capture
stdoutof the services it manages (the default configuration), you can use journalctl to view the service logs:For the manager:
journalctl -u ppem journalctl -fu ppem
For the agent:
journalctl -u ppem-agent journalctl -fu ppem-agent
Tip
The journalctl
-foption outputs the incoming messages.If the
log.fileconfiguration file parameter is specified, the log is written to the file specified inlog.file.path.You can use any tool of your choice to view the service log, for example, tail:
tail -f
path_to_log_file
Configuring Service Logs Level #
By default, the service logging is configured to use the info verbosity level, thus, logging info warn and error messages.
If the log information is insufficient, complete the following steps:
In the PPEM configuration files, set the appropriate log level in the
log.levelparameter for the manager and agents.After making any changes to manager and agent configuration files, restart the corresponding services:
For the manager:
systemctl restart ppemFor the agent:
systemctl restart ppem-agent
View service logs again.