November 2017
Intermediate to advanced
494 pages
14h 29m
English
This segment contains configuration parameters used for logging. According to the parameters in our example cluster, debugging is off and logs are transferred to syslog. If we want to turn debugging on and transfer logs to a logfile instead of syslog, our parameters will appear as follows:
logging { debug: on to_logfile : yes to_syslog : no timestamp : on } /var/log/<filename>.log { daily rotate 5 copytruncate }
We can also attach a timestamp to all the log entries. Note that if we want to pass logs to a logfile, we need an additional logfile { } segment along with the logrotate and copytruncate parameters.
Read now
Unlock full access