Last active
June 13, 2018 15:20
-
-
Save robotman321/217a69d456e543831936b1209b8bf501 to your computer and use it in GitHub Desktop.
syslog-ng snippet
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
source remote_syslog { | |
syslog(ip("10.1.1.1") | |
transport(udp) | |
port(514) | |
so_rcvbuf(8388608) | |
log-iw-size(512000) | |
log-fetch-limit(2000) | |
); | |
destination syslog_log { | |
file("/var/log/syslog/$HOST/$FACILITY/$YEAR$MONTH/$YEAR$MONTH$DAY-$FACILITY.log" | |
owner(root) | |
group(root) | |
perm(0600) | |
dir_perm(0700) | |
create_dirs(yes) | |
); | |
}; | |
log { | |
source(remote_syslog); | |
destination(syslog_log); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment