Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @version: 3.7
- @include "scl.conf"
- source s_hub1 {
- file("/var/log/hublog1.log" follow-freq(1));
- };
- source s_hub2 {
- file("/var/log/hublog2.log" follow-freq(1));
- };
- source s_local{
- system();
- internal();
- };
- destination d_tls {
- syslog("159.8.230.1"
- port(7777)
- transport("tls")
- tls( ca_dir("/usr/local/etc/syslog-ng/ca.d"))
- flags(syslog-protocol)
- );
- };
- destination d_local{
- file("/var/log/jacekmsg");
- };
- rewrite r_myhost{
- set("jackahub", value(".SDATA.meta.sequenceId"));
- };
- rewrite r_hubid{
- set("4145026747", value(".SDATA.meta.hubId"));
- };
- log {
- source(s_hub1);
- source(s_hub2);
- rewrite(r_myhost);
- rewrite(r_hubid);
- destination(d_tls);
- #destination(d_local);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement