Advertisement
G0nz0uk

rsyslog

Oct 31st, 2024
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.07 KB | None | 0 0
  1. # /etc/rsyslog.conf configuration file for rsyslog
  2. #
  3. # For more information install rsyslog-doc and see
  4. # /usr/share/doc/rsyslog-doc/html/configuration/index.html
  5. #
  6. # Default logging rules can be found in /etc/rsyslog.d/50-default.conf
  7.  
  8. *. * @192.168.61.61:514
  9.  
  10. #################
  11. #### MODULES ####
  12. #################
  13.  
  14. module(load="imuxsock") # provides support for local system logging
  15. #module(load="immark")  # provides --MARK-- message capability
  16.  
  17. # provides UDP syslog reception
  18. #module(load="imudp")
  19. #input(type="imudp" port="514")
  20.  
  21. # provides TCP syslog reception
  22. #module(load="imtcp")
  23. #input(type="imtcp" port="514")
  24.  
  25. # provides kernel logging support and enable non-kernel klog messages
  26. module(load="imklog" permitnonkernelfacility="on")
  27.  
  28. ###########################
  29. #### GLOBAL DIRECTIVES ####
  30. ###########################
  31.  
  32. #
  33. # Use traditional timestamp format.
  34. # To enable high precision timestamps, comment out the following line.
  35. #
  36. $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
  37.  
  38. # Filter duplicated messages
  39. $RepeatedMsgReduction on
  40.  
  41.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement