Guest User

ligging

a guest
Oct 2nd, 2016
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.48 KB | None | 0 0
  1. qwarelin@qwarelin-Lenovo-G505s ~ $ ls /etc/rsyslog.d/
  2. 20-ufw.conf 50-default.conf
  3.  
  4.  
  5. qwarelin@qwarelin-Lenovo-G505s ~ $ cat /etc/rsyslog.d/50-default.conf
  6. # Default rules for rsyslog.
  7. #
  8. # For more information see rsyslog.conf(5) and /etc/rsyslog.conf
  9.  
  10. #
  11. # First some standard log files. Log by facility.
  12. #
  13. auth,authpriv.* /var/log/auth.log
  14. *.*;auth,authpriv.none -/var/log/syslog
  15. #cron.* /var/log/cron.log
  16. #daemon.* -/var/log/daemon.log
  17. kern.* -/var/log/kern.log
  18. #lpr.* -/var/log/lpr.log
  19. mail.* -/var/log/mail.log
  20. #user.* -/var/log/user.log
  21.  
  22. #
  23. # Logging for the mail system. Split it up so that
  24. # it is easy to write scripts to parse these files.
  25. #
  26. #mail.info -/var/log/mail.info
  27. #mail.warn -/var/log/mail.warn
  28. mail.err /var/log/mail.err
  29.  
  30. #
  31. # Logging for INN news system.
  32. #
  33. news.crit /var/log/news/news.crit
  34. news.err /var/log/news/news.err
  35. news.notice -/var/log/news/news.notice
  36.  
  37. #
  38. # Some "catch-all" log files.
  39. #
  40. #*.=debug;\
  41. # auth,authpriv.none;\
  42. # news.none;mail.none -/var/log/debug
  43. #*.=info;*.=notice;*.=warn;\
  44. # auth,authpriv.none;\
  45. # cron,daemon.none;\
  46. # mail,news.none -/var/log/messages
  47.  
  48. #
  49. # Emergencies are sent to everybody logged in.
  50. #
  51. *.emerg :omusrmsg:*
  52.  
  53. #
  54. # I like to have messages displayed on the console, but only on a virtual
  55. # console I usually leave idle.
  56. #
  57. #daemon,mail.*;\
  58. # news.=crit;news.=err;news.=notice;\
  59. # *.=debug;*.=info;\
  60. # *.=notice;*.=warn /dev/tty8
  61.  
  62. # The named pipe /dev/xconsole is for the `xconsole' utility. To use it,
  63. # you must invoke `xconsole' with the `-file' option:
  64. #
  65. # $ xconsole -file /dev/xconsole [...]
  66. #
  67. # NOTE: adjust the list below, or you'll go crazy if you have a reasonably
  68. # busy site..
  69. #
  70. daemon.*;mail.*;\
  71. news.err;\
  72. *.=debug;*.=info;\
  73. *.=notice;*.=warn |/dev/xconsole
  74.  
  75.  
  76. qwarelin@qwarelin-Lenovo-G505s ~ $ cat /etc/logrotate.d/rsyslog
  77. /var/log/syslog
  78. {
  79. rotate 7
  80. daily
  81. missingok
  82. notifempty
  83. delaycompress
  84. compress
  85. postrotate
  86. reload rsyslog >/dev/null 2>&1 || true
  87. endscript
  88. }
  89.  
  90. /var/log/mail.info
  91. /var/log/mail.warn
  92. /var/log/mail.err
  93. /var/log/mail.log
  94. /var/log/daemon.log
  95. /var/log/kern.log
  96. /var/log/auth.log
  97. /var/log/user.log
  98. /var/log/lpr.log
  99. /var/log/cron.log
  100. /var/log/debug
  101. /var/log/messages
  102. {
  103. rotate 4
  104. weekly
  105. missingok
  106. notifempty
  107. compress
  108. delaycompress
  109. sharedscripts
  110. postrotate
  111. reload rsyslog >/dev/null 2>&1 || true
  112. endscript
  113. }
  114. qwarelin@qwarelin-Lenovo-G505s ~ $
Add Comment
Please, Sign In to add comment