Changeset View
Changeset View
Standalone View
Standalone View
etc/newsyslog.ucl
- This file was added.
#fucl1 | |||||
all { | |||||
allanjude: This 'sentinel' lets newsyslog know that this file is in FreeBSD UCL version 0.1. If it does… | |||||
# /var/log/all.log 600 7 * @T00 J | |||||
file = /var/log/all.log | |||||
Not Done Inline ActionsThis is a comment, of the original line from newsyslog.conf allanjude: This is a comment, of the original line from newsyslog.conf | |||||
mode = 600 | |||||
count = 7 | |||||
Not Done Inline ActionsNote to other reviewers: UCL doesn't implicitly understand 'mode' is octal, we just parse this field specially later in the patch. cse_cem_gmail_com: Note to other reviewers: UCL doesn't implicitly understand 'mode' is octal, we just parse this… | |||||
size = * | |||||
when = @T00 | |||||
compress = bzip2 | |||||
} | |||||
amd { | |||||
# /var/log/amd.log 644 7 100 * J | |||||
file = /var/log/amd.log | |||||
mode = 644 | |||||
count = 7 | |||||
size = 100kb | |||||
when = * | |||||
compress = bzip2 | |||||
} | |||||
auth { | |||||
# /var/log/auth.log 600 7 100 @0101T JC | |||||
file = /var/log/auth.log | |||||
mode = 600 | |||||
count = 7 | |||||
size = 100kb | |||||
when = @0101T | |||||
compress = bzip2 | |||||
Not Done Inline ActionsA new format for the time specification would likely be very welcome allanjude: A new format for the time specification would likely be very welcome | |||||
flags = [ | |||||
create, | |||||
] | |||||
} | |||||
console { | |||||
# /var/log/console.log 600 5 100 * J | |||||
file = /var/log/console.log | |||||
mode = 600 | |||||
count = 5 | |||||
size = 100kb | |||||
when = * | |||||
compress = bzip2 | |||||
} | |||||
cron { | |||||
# /var/log/cron 600 3 100 * JC | |||||
file = /var/log/cron | |||||
mode = 600 | |||||
count = 3 | |||||
size = 100kb | |||||
when = * | |||||
compress = bzip2 | |||||
flags = [ | |||||
create, | |||||
] | |||||
} | |||||
daily { | |||||
# /var/log/daily.log 640 7 * @T00 JN | |||||
file = /var/log/daily.log | |||||
mode = 640 | |||||
count = 7 | |||||
size = * | |||||
when = @T00 | |||||
compress = bzip2 | |||||
flags = [ | |||||
nosignal, | |||||
] | |||||
} | |||||
debug { | |||||
# /var/log/debug.log 600 7 100 * JC | |||||
file = /var/log/debug.log | |||||
mode = 600 | |||||
count = 7 | |||||
size = 100kb | |||||
when = * | |||||
compress = bzip2 | |||||
flags = [ | |||||
create, | |||||
] | |||||
} | |||||
init { | |||||
# /var/log/init.log 644 3 100 * J | |||||
file = /var/log/init.log | |||||
mode = 644 | |||||
count = 3 | |||||
size = 100kb | |||||
when = * | |||||
compress = bzip2 | |||||
} | |||||
kerberos { | |||||
# /var/log/kerberos.log 600 7 100 * J | |||||
file = /var/log/kerberos.log | |||||
mode = 600 | |||||
count = 7 | |||||
size = 100kb | |||||
when = * | |||||
compress = bzip2 | |||||
} | |||||
lpd { | |||||
# /var/log/lpd-errs 644 7 100 * JC | |||||
file = /var/log/lpd-errs | |||||
mode = 644 | |||||
count = 7 | |||||
size = 100kb | |||||
when = * | |||||
compress = bzip2 | |||||
flags = [ | |||||
create, | |||||
] | |||||
} | |||||
maillog { | |||||
# /var/log/maillog 640 7 * @T00 JC | |||||
file = /var/log/maillog | |||||
mode = 640 | |||||
count = 7 | |||||
size = * | |||||
when = @T00 | |||||
compress = bzip2 | |||||
flags = [ | |||||
create, | |||||
] | |||||
} | |||||
messages { | |||||
# /var/log/messages 644 5 100 @0101T JC | |||||
file = "/var/log/messages" | |||||
mode = 644 | |||||
count = 5 | |||||
size = 100kb | |||||
when = @0101T | |||||
compress = bzip2 | |||||
flags = [ | |||||
create, | |||||
] | |||||
} | |||||
monthly { | |||||
# /var/log/monthly.log 640 12 * $M1D0 JN | |||||
file = /var/log/monthly.log | |||||
mode = 640 | |||||
count = 12 | |||||
size = * | |||||
when = $M1D0 | |||||
compress = bzip2 | |||||
flags = [ | |||||
nosignal, | |||||
] | |||||
} | |||||
pflog { | |||||
# /var/log/pflog 600 3 100 * JB /var/run/pflogd.pid | |||||
file = /var/log/pflog | |||||
mode = 600 | |||||
count = 3 | |||||
size = 100kb | |||||
when = * | |||||
compress = bzip2 | |||||
flags = [ | |||||
binary, | |||||
] | |||||
pidfile = /var/run/pflogd.pid | |||||
} | |||||
ppp { | |||||
# /var/log/ppp.log root:network 640 3 100 * JC | |||||
file = /var/log/ppp.log | |||||
user = root | |||||
group = network | |||||
mode = 640 | |||||
count = 3 | |||||
size = 100kb | |||||
when = * | |||||
compress = bzip2 | |||||
flags = [ | |||||
create, | |||||
] | |||||
} | |||||
devd { | |||||
# /var/log/devd.log 644 3 100 * JC | |||||
file = /var/log/devd.log | |||||
mode = 644 | |||||
count = 3 | |||||
size = 100kb | |||||
when = * | |||||
compress = bzip2 | |||||
flags = [ | |||||
create, | |||||
] | |||||
} | |||||
security { | |||||
# /var/log/security 600 10 100 * JC | |||||
file = /var/log/security | |||||
mode = 600 | |||||
count = 10 | |||||
size = 100kb | |||||
when = * | |||||
compress = bzip2 | |||||
flags = [ | |||||
create, | |||||
] | |||||
} | |||||
sendmail { | |||||
# /var/log/sendmail.st 640 10 * 168 BN | |||||
file = /var/log/sendmail.st | |||||
mode = 640 | |||||
count = 10 | |||||
size = * | |||||
when = 168 | |||||
compress = none | |||||
flags = [ | |||||
binary, | |||||
Not Done Inline ActionsWorking with Vsevolod Stakhov (cebka@) to come up with a way to do opaque strip splitting (https://github.com/vstakhov/libucl/issues/36) so this could be: flags = binary, nosignal allanjude: Working with Vsevolod Stakhov (cebka@) to come up with a way to do opaque strip splitting… | |||||
nosignal, | |||||
] | |||||
} | |||||
utx { | |||||
# /var/log/utx.log 644 3 * @01T05 B | |||||
file = /var/log/utx.log | |||||
mode = 644 | |||||
count = 3 | |||||
size = * | |||||
when = @01T05 | |||||
compress = none | |||||
flags = [ | |||||
binary, | |||||
] | |||||
} | |||||
weekly { | |||||
# /var/log/weekly.log 640 5 * $W6D0 JN | |||||
file = /var/log/weekly.log | |||||
mode = 640 | |||||
count = 5 | |||||
size = * | |||||
when = $W6D0 | |||||
compress = bzip2 | |||||
flags = [ | |||||
nosignal, | |||||
] | |||||
} | |||||
xfer { | |||||
# /var/log/xferlog 600 7 100 * JC | |||||
file = /var/log/xferlog | |||||
mode = 600 | |||||
count = 7 | |||||
size = 100kb | |||||
when = * | |||||
compress = bzip2 | |||||
flags = [ | |||||
create, | |||||
] | |||||
} |
This 'sentinel' lets newsyslog know that this file is in FreeBSD UCL version 0.1. If it does not see this at the top of the file, it treats it as a legacy .conf file in the original format.
This will allow the new format to keep the original filename, newsyslog.conf
It also allows for 'versioning' of the config schema, so we can easily keep backwards compatibility if we change the config syntax again in the future.