Advertisement
Guest User

rsyslog.conf

a guest
Feb 5th, 2017
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.65 KB | None | 0 0
  1. # /etc/rsyslog.conf Configuration file for rsyslog.
  2. #################
  3. #### MODULES ####
  4. #################
  5.  
  6. $ModLoad imuxsock # provides support for local system logging
  7. #$ModLoad imklog # provides kernel logging support
  8. #$ModLoad immark # provides --MARK-- message capability
  9.  
  10. # provides UDP syslog reception
  11. $ModLoad imudp
  12. $UDPServerRun 514
  13.  
  14. # provides TCP syslog reception
  15. $ModLoad imtcp
  16. $InputTCPServerRun 514
  17.  
  18.  
  19. ###########################
  20. #### GLOBAL DIRECTIVES ####
  21. ###########################
  22. $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
  23. $ActionQueueMaxDiskSpace 1g
  24.  
  25. $FileOwner root
  26. $FileGroup adm
  27. $FileCreateMode 0640
  28. $DirCreateMode 0755
  29. $Umask 0022
  30.  
  31. $WorkDirectory /var/spool/rsyslog
  32. $IncludeConfig /etc/rsyslog.d/*.conf
  33.  
  34.  
  35. ###############
  36. #### RULES ####
  37. ###############
  38.  
  39. # First some standard log files. Log by facility.
  40. auth,authpriv.* /var/log/auth.log
  41. *.*;auth,authpriv.none -/var/log/syslog
  42. #cron.* /var/log/cron.log
  43. #daemon.* -/var/log/daemon.log
  44. #kern.* -/var/log/kern.log
  45. #lpr.* -/var/log/lpr.log
  46. #mail.* -/var/log/mail.log
  47. #user.* -/var/log/user.log
  48.  
  49. # Logging for the mail system. Split it up so that it is easy to write scripts to parse these files.
  50. mail.info -/var/log/mail.info
  51. mail.warn -/var/log/mail.warn
  52. mail.err /var/log/mail.err
  53.  
  54. # Logging for INN news system.
  55. news.crit /var/log/news/news.crit
  56. news.err /var/log/news/news.err
  57. news.notice -/var/log/news/news.notice
  58.  
  59. # Some "catch-all" log files.
  60. *.=debug;auth,authpriv.none;news.none;mail.none -/var/log/debug
  61. *.=info;*.=notice;*.=warn;auth,authpriv.none;cron,daemon.none;mail,news.none -/var/log/messages
  62.  
  63. # Emergencies are sent to everybody logged in.
  64. *.emerg :omusrmsg:*
  65.  
  66. # I like to have messages displayed on the console, but only on a virtual console I usually leave idle.
  67. #daemon,mail.*;news.=crit;news.=err;news.=notice;*.=debug;*.=info;*.=notice;*.=warn /dev/tty8
  68.  
  69. # The named pipe /dev/xconsole is for the `xconsole' utility. To use it,
  70. # you must invoke `xconsole' with the `-file' option:
  71. #
  72. # $ xconsole -file /dev/xconsole [...]
  73. #
  74. # NOTE: adjust the list below, or you'll go crazy if you have a reasonably
  75. # busy site..
  76. #
  77. #daemon.*;mail.*;news.err;*.=debug;*.=info;*.=notice;*.=warn |/dev/xconsole
  78. #daemon.*;mail.*;news.err;*.=debug;*.=info;*.=notice;*.=warn |/dev/null
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement