salt.modules.logadm

Module for managing Solaris logadm based log rotations.

salt.modules.logadm.remove(name, conf_file='/etc/logadm.conf')

Remove log pattern from logadm

CLI Example:

salt '*' logadm.remove myapplog
salt.modules.logadm.rotate(name, pattern=False, count=False, age=False, size=False, copy=True, conf_file='/etc/logadm.conf')

Set up pattern for logging.

CLI Example:

salt '*' logadm.rotate myapplog pattern='/var/log/myapp/*.log' count=7
salt.modules.logadm.show_conf(conf_file='/etc/logadm.conf')

Show parsed configuration

CLI Example:

salt '*' logadm.show_conf