Advertisement
G0nz0uk

rsyslog

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