Guest User

Untitled

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