Advertisement
FamiHug

rsyslog.conf

Mar 11th, 2013
485
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 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 (previously done by rklogd)
  15. $ModLoad imfile
  16. #$ModLoad immark # provides --MARK-- message capability
  17.  
  18. # provides UDP syslog reception
  19. #$ModLoad imudp
  20. #$UDPServerRun 514
  21.  
  22. # provides TCP syslog reception
  23. #$ModLoad imtcp
  24. #$InputTCPServerRun 514
  25.  
  26.  
  27. ###########################
  28. #### GLOBAL DIRECTIVES ####
  29. ###########################
  30.  
  31. #
  32. # Use traditional timestamp format.
  33. # To enable high precision timestamps, comment out the following line.
  34. #
  35. $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
  36.  
  37. # Filter duplicated messages
  38. $RepeatedMsgReduction on
  39.  
  40. #
  41. # Set the default permissions for all log files.
  42. #
  43. $FileOwner syslog
  44. $FileGroup adm
  45. $FileCreateMode 0640
  46. $DirCreateMode 0755
  47. $Umask 0022
  48. $PrivDropToUser syslog
  49. $PrivDropToGroup syslog
  50.  
  51. #
  52. # Where to place spool files
  53. #
  54. $WorkDirectory /var/spool/rsyslog
  55.  
  56. #
  57. # Include all config files in /etc/rsyslog.d/
  58. #
  59. $IncludeConfig /etc/rsyslog.d/*.conf
  60.  
  61.  
  62. $InputFileName /var/log/nginx/access.log
  63. $InputFileTag nginx:
  64. $InputFileStateFile nginxxxx
  65. $InputFileSeverity error
  66. $InputFileFacility local7
  67. $InputRunFileMonitor
  68. $InputFilePollingInterval 10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement