Configure rsyslog and logrotate#

rsyslog#

To add an rsyslog configuration file:

  1. Add a configuration file to salt/core/rsyslog/files

  2. Add a mapping to the service’s Pillar file

For example:

rsyslog:
  conf:
    92-kingfisher-archive.conf: kingfisher-archive.conf

The kingfisher-archive.conf file in salt/core/rsyslog/files will be written to /etc/rsyslog.d/92-kingfisher-archive.conf, and the rsyslog service will be restarted.

logrotate#

  1. Add a configuration file to salt/core/logrotate/files

  2. Add a mapping to the service’s Pillar file

For example:

logrotate:
  conf:
    archive: kingfisher-archive

The kingfisher-archive file in salt/core/logrotate/files will be written to /etc/logrotate.d/archive.