Module for managing Solaris logadm based log rotations.
salt.modules.logadm.
remove
(name, conf_file='/etc/logadm.conf')¶Remove log pattern from logadm
命令行接口CLI 范例:
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 范例:
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 范例:
salt '*' logadm.show_conf