Skip to main content
Ask Question
Cluster Management
Asked a question 8 years ago

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

Where am I?

In Bright Computing, Inc. you can ask and answer questions and share your experience with others!

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.

Related Questions

Question Stats

80 views
0 followers
Asked a question 8 years ago
Views this month