Created
November 13, 2021 10:33
-
-
Save jagland/a33b76e91b025d98ce4e7434f12791f8 to your computer and use it in GitHub Desktop.
syslog-ng-conf.d-remote.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
options { | |
time-reap(30); | |
mark-freq(10); | |
keep-hostname(yes); | |
}; | |
source s_network { | |
syslog(transport(udp) port(514)); | |
}; | |
destination d_logs { | |
file( | |
"/var/log/syslog-ng/${HOST}-${YEAR}${MONTH}${DAY}.log" | |
owner("root") | |
group("root") | |
perm(0777) | |
); }; | |
log { source(s_network); destination(d_logs); }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment