Module for managing Solaris logadm based log rotations.
Show parsed configuration
New in version 2018.3.0.
path to logadm.conf, defaults to /etc/logadm.conf
optional show only one log file
include unset flags in output
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.
alias for entryname
alias for log_file
optional path to alternative configuration file
optional additional flags and parameters
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
path to logadm.conf, defaults to /etc/logadm.conf
optional show only a single entry
CLI Example:
salt '*' logadm.show_conf
salt '*' logadm.show_conf name=/var/log/syslog