Skip to content

Instantly share code, notes, and snippets.

@faxm0dem
Last active February 8, 2017 14:02
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 faxm0dem/763e2c9b6fbcf136c19fd01f9ca640c9 to your computer and use it in GitHub Desktop.
Save faxm0dem/763e2c9b6fbcf136c19fd01f9ca640c9 to your computer and use it in GitHub Desktop.
syslog-ng flags final
@version: 3.5
source s_tdin {
file("/dev/stdin" flags(no-parse));
};
destination d_one {
file("/tmp/one");
};
destination d_two {
file("/tmp/two");
};
destination d_all {
file("/tmp/all");
};
filter f_one {
message('one');
};
filter f_two {
message('two');
};
log {
source(s_tdin);
filter(f_one);
destination(d_one);
flags(final);
};
log {
source(s_tdin);
filter(f_two);
destination(d_two);
flags(final);
};
log {
source(s_tdin);
destination(d_all);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment