Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options {
- create_dirs(yes);
- owner(root);
- group(root);
- perm(0640);
- dir_owner(root);
- dir_group(root);
- dir_perm(0750);
- };
- source s_dl {
- network (
- transport("tcp")
- port(3993)
- );
- };
- filter f_dpkg{
- tags("dpkg");
- };
- destination d_host-specific {
- file("/var/log/servers/$HOST/$YEAR/$MONTH/$HOST-$YEAR-$MONTH-$DAY.log");
- };
- destination d_syslog {
- file("/var/log/servers/$HOST/$YEAR/$MONTH/$HOST-$YEAR-$MONTH-$DAY-syslog.log");
- };
- destination d_dpkg {
- file("/var/log/servers/$HOST/$YEAR/$MONTH/$HOST-$YEAR-$MONTH-$DAY-dpkg.log");
- };
- log {
- source(s_dl);
- filter(f_auth);
- destination(d_host-specific);
- };
- log {
- source(s_dl);
- filter(f_syslog3);
- destination(d_syslog);
- };
- log{
- source(s_dl);
- filter(f_dpkg);
- destination(d_dpkg);
- };
- source s_dpkg {
- file('/var/log/dpkg.log'); tags('dpkg'));
- };
- destination d_net { tcp("192.168.48.15" port(3993)); };
- filter f_tag { tags("dpkg"); };
- log { source(s_src); filter(f_auth); destination(d_net);};
- log { source(s_src); filter(f_syslog3); destination(d_net);};
- log { source(s_dpkg); filter(f_test); destination(d_net);};
Add Comment
Please, Sign In to add comment