Advertisement
FamiHug

rsyslog.d

Mar 11th, 2013
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.35 KB | None | 0 0
  1. ==> /etc/rsyslog.d/20-ufw.conf <==
  2. # Log kernel generated UFW log messages to file
  3. :msg,contains,"[UFW " /var/log/ufw.log
  4.  
  5. # Uncomment the following to stop logging anything that matches the last rule.
  6. # Doing this will stop logging kernel generated UFW log messages to the file
  7. # normally containing kern.* messages (eg, /var/log/kern.log)
  8. #& ~
  9.  
  10. ==> /etc/rsyslog.d/50-default.conf <==
  11. # Default rules for rsyslog.
  12. #
  13. # For more information see rsyslog.conf(5) and /etc/rsyslog.conf
  14.  
  15. #
  16. # First some standard log files. Log by facility.
  17. #
  18. auth,authpriv.* /var/log/auth.log
  19. *.*;auth,authpriv.none -/var/log/syslog
  20. #cron.* /var/log/cron.log
  21. #daemon.* -/var/log/daemon.log
  22. kern.* -/var/log/kern.log
  23. #lpr.* -/var/log/lpr.log
  24. mail.* -/var/log/mail.log
  25. #user.* -/var/log/user.log
  26.  
  27. #
  28. # Logging for the mail system. Split it up so that
  29. # it is easy to write scripts to parse these files.
  30. #
  31. #mail.info -/var/log/mail.info
  32. #mail.warn -/var/log/mail.warn
  33. mail.err /var/log/mail.err
  34.  
  35. #
  36. # Logging for INN news system.
  37. #
  38. news.crit /var/log/news/news.crit
  39. news.err /var/log/news/news.err
  40. news.notice -/var/log/news/news.notice
  41.  
  42. #
  43. # Some "catch-all" log files.
  44. #
  45. #*.=debug;\
  46. # auth,authpriv.none;\
  47. # news.none;mail.none -/var/log/debug
  48. #*.=info;*.=notice;*.=warn;\
  49. # auth,authpriv.none;\
  50. # cron,daemon.none;\
  51. # mail,news.none -/var/log/messages
  52.  
  53. #
  54. # Emergencies are sent to everybody logged in.
  55. #
  56. *.emerg :omusrmsg:*
  57.  
  58. #
  59. # I like to have messages displayed on the console, but only on a virtual
  60. # console I usually leave idle.
  61. #
  62. #daemon,mail.*;\
  63. # news.=crit;news.=err;news.=notice;\
  64. # *.=debug;*.=info;\
  65. # *.=notice;*.=warn /dev/tty8
  66.  
  67. # The named pipe /dev/xconsole is for the `xconsole' utility. To use it,
  68. # you must invoke `xconsole' with the `-file' option:
  69. #
  70. # $ xconsole -file /dev/xconsole [...]
  71. #
  72. # NOTE: adjust the list below, or you'll go crazy if you have a reasonably
  73. # busy site..
  74. #
  75. daemon.*;mail.*;\
  76. news.err;\
  77. *.=debug;*.=info;\
  78. *.=notice;*.=warn |/dev/xconsole
  79.  
  80. ==> /etc/rsyslog.d/postfix.conf <==
  81. # Create an additional socket in postfix's chroot in order not to break
  82. # mail logging when rsyslog is restarted. If the directory is missing,
  83. # rsyslog will silently skip creating the socket.
  84. $AddUnixListenSocket /var/spool/postfix/dev/log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement