Advertisement
JacekOO

Syslog client

Aug 14th, 2015
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.93 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.1"  
  25.                 port(7777)                                  
  26.                 transport("tls")
  27.                 tls( ca_dir("/usr/local/etc/syslog-ng/ca.d"))
  28.         flags(syslog-protocol)
  29.         );                        
  30. };                                                      
  31.                                  
  32. destination d_local{                                  
  33.         file("/var/log/jacekmsg");                      
  34. };                                                    
  35.                                                                    
  36. log {                                                    
  37.         source(s_hub1);                              
  38.         source(s_hub2);                                  
  39.                          
  40.         destination(d_tls);                          
  41.         #destination(d_local);
  42. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement