Categories

ID #1040

How can I reduce the size of cmdaemon and node installer logs?

By default, cmdaemon, node installer and some other Bright Cluster Manager logs are handled with logrotate. The options for these can be set in:

/etc/logrotate.d/cmdaemon

The logrotate command has several options (man logrotate) to handle unfeasibly large logs.

Options to consider are: compressing older log files, reducing the number of days that are logged, or the size of each log.

For example:

/var/spool/cmd/event.log {
  monthly
  size=1G
  missingok
}

 

This rotates event.log monthly, allows a maximum log size of 1GB, and if the log file doesn't exist, skips the log file without an error message.

Tags: -

Related entries:

You cannot comment on this entry