Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.35 KB | None | 0 0
  1. #  /etc/rsyslog.conf    Configuration file for rsyslog.
  2. #
  3. #           For more information see
  4. #           /usr/share/doc/rsyslog-doc/html/rsyslog_conf.html
  5. #
  6. #  Default logging rules can be found in /etc/rsyslog.d/50-default.conf
  7.  
  8.  
  9. #################
  10. #### MODULES ####
  11. #################
  12.  
  13. $ModLoad imuxsock # provides support for local system logging
  14. $ModLoad imklog   # provides kernel logging support
  15. #$ModLoad immark  # provides --MARK-- message capability
  16.  
  17. # provides UDP syslog reception
  18. #$ModLoad imudp
  19. #$UDPServerRun 514
  20.  
  21. # provides TCP syslog reception
  22. #$ModLoad imtcp
  23. #$InputTCPServerRun 514
  24.  
  25. # Enable non-kernel facility klog messages
  26. $KLogPermitNonKernelFacility 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. #
  42. # Set the default permissions for all log files.
  43. #
  44. $FileOwner syslog
  45. $FileGroup adm
  46. $FileCreateMode 0640
  47. $DirCreateMode 0755
  48. $Umask 0022
  49. $PrivDropToUser syslog
  50. $PrivDropToGroup syslog
  51.  
  52. #
  53. # Where to place spool and state files
  54. #
  55. $WorkDirectory /var/spool/rsyslog
  56.  
  57. #
  58. # Include all config files in /etc/rsyslog.d/
  59. #
  60. $IncludeConfig /etc/rsyslog.d/*.conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement