JacekOO

Untitled

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