Guest User

Untitled

a guest
Jun 18th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 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. module(load="imuxsock") # provides support for local system logging
  14. module(load="imklog") # provides kernel logging support
  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. # 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
  61.  
  62. $AllowedSender TCP, 192.168.1.0/24
  63.  
  64.  
  65.  
  66.  
  67.  
  68. $template HostAudit, “/var/log/rsyslog/%$YEAR%/%$MONTH%/%$DAY%/%HOSTNAME%_audit.log”
  69. $template auditFormat, “%msg%n” local6.* ?HostAudit;auditFormat
Add Comment
Please, Sign In to add comment