Advertisement
G0nz0uk

rsyslog1

Dec 6th, 2024 (edited)
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.49 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. #################
  9. #### MODULES ####
  10. #################
  11.  
  12. module(load="imuxsock") # provides support for local system logging
  13. #module(load="immark")  # provides --MARK-- message capability
  14.  
  15. # provides UDP syslog reception
  16. module(load="imudp")
  17. input(type="imudp" port="514")
  18.  
  19. # provides TCP syslog reception
  20. module(load="imtcp")
  21. input(type="imtcp" port="514")
  22.  
  23. # provides kernel logging support and enable non-kernel klog messages
  24. module(load="imklog" permitnonkernelfacility="on")
  25.  
  26. ###########################
  27. #### GLOBAL DIRECTIVES ####
  28. ###########################
  29.  
  30. # Filter duplicated messages
  31. $RepeatedMsgReduction on
  32.  
  33. #
  34. # Set the default permissions for all log files.
  35. #
  36. $FileOwner syslog
  37. $FileGroup adm
  38. $FileCreateMode 0640
  39. $DirCreateMode 0755
  40. $Umask 0022
  41. $PrivDropToUser syslog
  42. $PrivDropToGroup syslog
  43. #
  44. # Where to place spool and state files
  45. #
  46. $WorkDirectory /var/spool/rsyslog
  47. #
  48. # Include all config files in /etc/rsyslog.d/
  49.  
  50. #
  51. *.*  action(type="omfwd" target="10.11.15.1" port="51893" protocol="tcp" Template="RSYSLOG_SyslogProtocol23Format")
  52. $IncludeConfig /etc/rsyslog.d/*.conf
  53.  
  54. *.*  action(type="omfwd" target="10.11.15.2" port="51893" protocol="tcp" Template="RSYSLOG_SyslogProtocol23Format")
  55. $IncludeConfig /etc/rsyslog.d/*.conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement