Created
December 28, 2016 15:58
-
-
Save packetchef/be75675fab36abc609023ad90a088f25 to your computer and use it in GitHub Desktop.
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 { | |
use_dns(yes); | |
owner("log"); | |
group("log"); | |
create_dirs(yes); | |
perm(0750); | |
dir_perm(0750); | |
dir_owner("log"); | |
dir_group("log"); | |
}; | |
source s_network { | |
udp(ip(0.0.0.0) port(514)); | |
tcp(ip(0.0.0.0) port(514)); | |
}; | |
destination d_network { | |
file( | |
"/opt/data/logs/incoming/hosts/$HOST/$HOST-$YEAR$MONTH$DAY.log" | |
); | |
}; | |
log { source(s_network); destination(d_network); }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment