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 July 18, 2017 at 06:45:48 MDT.
You are viewing docs for the previous stable release, 2016.3.6. Switch to docs for the latest stable release, 2016.11.6, or to a recent doc build from the develop branch.
© 2017 SaltStack. All Rights Reserved, SaltStack Inc. | Privacy Policy