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 February 25, 2019 at 06:53:47 MST.
You are viewing docs for the previous stable release, 2017.7.8. Switch to docs for the latest stable release, 2018.3.3, or to a recent doc build from the develop branch.
© 2019 SaltStack. All Rights Reserved, SaltStack Inc. | Privacy Policy