Skip to content

Instantly share code, notes, and snippets.

@jagland
Created November 13, 2021 10:33
Show Gist options
  • Save jagland/a33b76e91b025d98ce4e7434f12791f8 to your computer and use it in GitHub Desktop.
Save jagland/a33b76e91b025d98ce4e7434f12791f8 to your computer and use it in GitHub Desktop.
syslog-ng-conf.d-remote.conf
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