rsyslog.conf.logserver 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. #
  2. # /etc/rsyslog.conf Configuration file for rsyslog. (Salt managed)
  3. #
  4. # For more information see
  5. # /usr/share/doc/rsyslog-doc/html/rsyslog_conf.html
  6. #################
  7. #### MODULES ####
  8. #################
  9. $ModLoad imuxsock # provides support for local system logging
  10. $ModLoad imklog # provides kernel logging support
  11. #$ModLoad immark # provides --MARK-- message capability
  12. # provides UDP syslog reception
  13. $ModLoad imudp
  14. $UDPServerRun 514
  15. # provides TCP syslog reception
  16. $ModLoad imtcp
  17. $InputTCPServerRun 514
  18. ###########################
  19. #### GLOBAL DIRECTIVES ####
  20. ###########################
  21. #
  22. # Use traditional timestamp format.
  23. # To enable high precision timestamps, comment out the following line.
  24. #
  25. $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
  26. #
  27. # Set the default permissions for all log files.
  28. #
  29. $FileOwner root
  30. $FileGroup adm
  31. $FileCreateMode 0640
  32. $DirCreateMode 0755
  33. $Umask 0022
  34. #
  35. # Where to place spool and state files
  36. #
  37. $WorkDirectory /var/spool/rsyslog
  38. #
  39. # Include all config files in /etc/rsyslog-early.d/
  40. #
  41. $IncludeConfig /etc/rsyslog-early.d/*.conf
  42. #
  43. # Include all config files in /etc/rsyslog.d/
  44. #
  45. $IncludeConfig /etc/rsyslog.d/*.conf
  46. ###############
  47. #### RULES ####
  48. ###############
  49. #
  50. # First some standard log files. Log by facility.
  51. #
  52. #auth,authpriv.* /var/log/auth.log
  53. #*.*;auth,authpriv.none -/var/log/syslog
  54. #cron.* /var/log/cron.log
  55. #daemon.* -/var/log/daemon.log
  56. #kern.* -/var/log/kern.log
  57. #lpr.* -/var/log/lpr.log
  58. #mail.* -/var/log/mail.log
  59. #user.* -/var/log/user.log
  60. #
  61. # Logging for the mail system. Split it up so that
  62. # it is easy to write scripts to parse these files.
  63. #
  64. #mail.info -/var/log/mail.info
  65. #mail.warn -/var/log/mail.warn
  66. #mail.err /var/log/mail.err
  67. #
  68. # Logging for INN news system.
  69. #
  70. #news.crit /var/log/news/news.crit
  71. #news.err /var/log/news/news.err
  72. #news.notice -/var/log/news/news.notice
  73. #
  74. # Some "catch-all" log files.
  75. #
  76. #*.=debug;\
  77. # auth,authpriv.none;\
  78. # news.none;mail.none -/var/log/debug
  79. #*.=info;*.=notice;*.=warn;\
  80. # auth,authpriv.none;\
  81. # cron,daemon.none;\
  82. # mail,news.none -/var/log/messages
  83. #
  84. # Emergencies are sent to everybody logged in.
  85. #
  86. *.emerg :omusrmsg:*
  87. #
  88. # I like to have messages displayed on the console, but only on a virtual
  89. # console I usually leave idle.
  90. #
  91. #daemon,mail.*;\
  92. # news.=crit;news.=err;news.=notice;\
  93. # *.=debug;*.=info;\
  94. # *.=notice;*.=warn /dev/tty8
  95. # The named pipe /dev/xconsole is for the `xconsole' utility. To use it,
  96. # you must invoke `xconsole' with the `-file' option:
  97. #
  98. # $ xconsole -file /dev/xconsole [...]
  99. #
  100. # NOTE: adjust the list below, or you'll go crazy if you have a reasonably
  101. # busy site..
  102. #
  103. #daemon.*;mail.*;\
  104. # news.err;\
  105. # *.=debug;*.=info;\
  106. # *.=notice;*.=warn |/dev/xconsole