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
Generated on April 03, 2018 at 06:37:10 MDT.
You are viewing docs for the previous stable release, 2016.11.9. Switch to docs for the latest stable release, 2017.7.4, or to a recent doc build from the develop branch.
© 2018 SaltStack. All Rights Reserved, SaltStack Inc. | Privacy Policy