Advertisement
Guest User

Untitled

a guest
Jul 12th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.85 KB | None | 0 0
  1. # rsyslog configuration file
  2.  
  3. # For more information see /usr/share/doc/rsyslog-*/rsyslog_conf.html
  4. # If you experience problems, see http://www.rsyslog.com/doc/troubleshoot.html
  5.  
  6. #### MODULES ####
  7.  
  8. # The imjournal module bellow is now used as a message source instead of imuxsock.
  9. ModLoad imuxsock # provides support for local system logging (e.g. via logger command)
  10. ModLoad imjournal # provides access to the systemd journal
  11. #$ModLoad imklog # reads kernel messages (the same are read from journald)
  12. #$ModLoad immark  # provides --MARK-- message capability
  13.  
  14. # Provides UDP syslog reception
  15. #$ModLoad imudp
  16. #$UDPServerRun 514
  17.  
  18. # Provides TCP syslog reception
  19. #$ModLoad imtcp
  20. #$InputTCPServerRun 514
  21.  
  22.  
  23. #### GLOBAL DIRECTIVES ####
  24.  
  25. # Where to place auxiliary files
  26. WorkDirectory /var/lib/rsyslog
  27.  
  28. # Use default timestamp format
  29. ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
  30.  
  31. # File syncing capability is disabled by default. This feature is usually not required,
  32. # not useful and an extreme performance hit
  33. #$ActionFileEnableSync on
  34.  
  35. # Include all config files in /etc/rsyslog.d/
  36. #IncludeConfig /etc/rsyslog.d/*.conf
  37.  
  38. # Turn off message reception via local log socket;
  39. # local messages are retrieved through imjournal now.
  40. $OmitLocalLogging on
  41.  
  42. # File to store the position in the journal
  43. $IMJournalStateFile imjournal.state
  44.  
  45.  
  46. #### RULES ####
  47.  
  48. # Log all kernel messages to the console.
  49. # Logging much else clutters up the screen.
  50. #kern.*                                                 /dev/console
  51.  
  52. # Log anything (except mail) of level info or higher.
  53. # Don't log private authentication messages
  54.  
  55.  
  56.  
  57. *.info;mail.none;authpriv.none;cron.none    /var/log/messages
  58.  
  59. # The authpriv file has restricted access.
  60. authpriv.*                                              /var/log/secure
  61.  
  62. # Log all the mail messages in one place.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement