Guest User

Untitled

a guest
May 28th, 2012
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 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.  
  7. #################
  8. #### MODULES ####
  9. #################
  10.  
  11. $ModLoad imuxsock # provides support for local system logging
  12. $ModLoad imklog # provides kernel logging support (previously done by rklogd)
  13. #$ModLoad immark # provides --MARK-- message capability
  14.  
  15. # provides UDP syslog reception
  16. $ModLoad imudp
  17. $UDPServerRun 514
  18.  
  19.  
  20. ###########################
  21. #### GLOBAL DIRECTIVES ####
  22. ###########################
  23.  
  24. #
  25. # Use traditional timestamp format.
  26. # To enable high precision timestamps, comment out the following line.
  27. #
  28. $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
  29.  
  30. #
  31. # Set the default permissions for all log files.
  32. #
  33. $FileOwner root
  34. $FileGroup adm
  35. $FileCreateMode 0640
  36. $DirCreateMode 0755
  37. $Umask 0022
  38.  
  39. #
  40. # Include all config files in /etc/rsyslog.d/
  41. #
  42. $IncludeConfig /etc/rsyslog.d/*.conf
  43.  
  44.  
  45. ###############
  46. #### RULES ####
  47. ###############
  48.  
  49. #
  50. # First some standard log files. Log by facility.
  51. #
  52. *.* -/var/log/test/all.log
  53. local0.* -/var/log/test/local0.log
  54. mail.* -/var/log/test/mail.log
  55. user.* -/var/log/test/user.log
Advertisement
Add Comment
Please, Sign In to add comment