ansible/roles/rsyslog/templates/archival.conf.j2

35 lines
1.0 KiB
Plaintext
Raw Permalink Normal View History

2019-11-03 17:31:08 +00:00
# {{ ansible_managed }}
template(
name="FilePerDay"
type="list"
) {
constant(value="/var/log/syslog/")
property(name="hostname")
constant(value="/")
property(name="syslogfacility-text")
constant(value="/")
property(name="timereported" dateformat="year")
property(name="timereported" dateformat="month")
constant(value="/")
property(name="timereported" dateformat="year")
property(name="timereported" dateformat="month")
property(name="timereported" dateformat="day")
constant(value="-")
property(name="syslogfacility-text")
constant(value=".log")
}
*.* action(
type="omfile"
dynafile="FilePerDay"
template="RSYSLOG_FileFormat"
fileCreateMode="{{ rsyslog_file_create_mode }}"
dirCreateMode="{{ rsyslog_dir_create_mode }}"
createDirs="{{ rsyslog_create_dirs | ternary('on', 'off') }}"
fileOwner="{{ rsyslog_file_owner }}"
fileGroup="{{ rsyslog_file_group }}"
dirOwner="{{ rsyslog_file_owner }}"
dirGroup="{{ rsyslog_file_group }}"
2019-11-03 17:31:08 +00:00
)