Advertisement
JacekOO

Untitled

Aug 14th, 2015
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.06 KB | None | 0 0
  1. @version: 3.7
  2. @include "scl.conf"
  3.  
  4. source s_hub1 {
  5.  
  6.         file("/var/log/hublog1.log" follow-freq(1));
  7. };
  8.  
  9. source s_hub2 {
  10.         file("/var/log/hublog2.log" follow-freq(1));
  11. };
  12.  
  13. source s_local{
  14.         system();
  15.         internal();
  16. };
  17.  
  18. destination d_tls {
  19.         syslog("159.8.230.1"
  20.                 port(7777)
  21.                 transport("tls")
  22.                 tls( ca_dir("/usr/local/etc/syslog-ng/ca.d"))
  23.                 flags(syslog-protocol)
  24.         );
  25. };
  26.  
  27. destination d_local{
  28.         file("/var/log/jacekmsg");
  29. };
  30.  
  31. rewrite r_myhost{
  32.         set("jackahub", value(".SDATA.meta.sequenceId"));
  33. };
  34.  
  35. rewrite r_hubid{
  36.         set("4145026747", value(".SDATA.meta.hubId"));
  37. };
  38.                
  39. log {                                                
  40.         source(s_hub1);                                  
  41.         source(s_hub2);
  42.      
  43.         rewrite(r_myhost);
  44.         rewrite(r_hubid);                              
  45.                            
  46.         destination(d_tls);
  47.         #destination(d_local);                        
  48. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement