Expand description
Log-management actions: logrotate drop-ins + rsyslog remote forwarding.
GetLogrotateStatus is a read-only dry-run (logrotate -d). The mutating
actions delegate to the root-owned helper /usr/lib/sysknife/log-edit, which
validates each config before keeping it (logrotate -d for rotation,
rsyslogd -N1 for forwarding) and rolls back on rejection.
Functions§
- configure_
log_ rotation - Write a logrotate drop-in (
log-edit --op logrotate …). - configure_
remote_ syslog - Configure rsyslog to forward all logs to a remote collector.
- get_
logrotate_ status - Dry-run logrotate to show what would rotate (
logrotate -d <conf>). Read-only —-d(debug) never actually rotates. Defaults to the main config. - remove_
log_ rotation - Remove a SysKnife-managed logrotate drop-in.
- remove_
remote_ syslog - Remove the rsyslog remote-forwarding drop-in.
- specs