Skip to content

Instantly share code, notes, and snippets.

@packetchef
Created December 28, 2016 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save packetchef/be75675fab36abc609023ad90a088f25 to your computer and use it in GitHub Desktop.
Save packetchef/be75675fab36abc609023ad90a088f25 to your computer and use it in GitHub Desktop.
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