Module for managing Solaris logadm based log rotations.
Show parsed configuration
New in version 2018.3.0.
CLI Example:
salt '*' logadm.list_conf salt '*' logadm.list_conf log=/var/log/syslog salt '*' logadm.list_conf include_unset=False
Remove log pattern from logadm
CLI Example:
salt '*' logadm.remove myapplog
Set up pattern for logging.
Note
name
and pattern
were kept for backwards compatibility reasons.
name
is an alias for the entryname
argument, pattern
is an alias for log_file
. These aliases will only be used if the entryname
and log_file
arguments are not passed.
For a full list of arguments see `logadm.show_args`
.
CLI Example:
salt '*' logadm.rotate myapplog pattern='/var/log/myapp/*.log' count=7 salt '*' logadm.rotate myapplog log_file='/var/log/myapp/*.log' count=4 owner=myappd mode='0700'
Show which arguments map to which flags and options.
New in version 2018.3.0.
CLI Example:
salt '*' logadm.show_args
Show configuration
CLI Example:
salt '*' logadm.show_conf salt '*' logadm.show_conf name=/var/log/syslog
© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.logadm.html