You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

62 lines
1.5 KiB

  1. # /etc/rsyslog.conf
  2. #
  3. # This configuration is based on RainerScript, the new recommended syntax
  4. # for RSYSLOG. See http://www.rsyslog.com/doc/rainerscript.html for further
  5. # details.
  6. #
  7. # But if you don't want to learn something new at moment, don't worry: The
  8. # legacy syntax is still supported.
  9. #
  10. # You may want to use the new RSYSLOG configuration builder to create your
  11. # own more advanced configuration: http://www.rsyslog.com/rsyslog-configuration-builder/
  12. # Check config syntax on startup and abort if unclean (default: off)
  13. #$AbortOnUncleanConfig on
  14. ###############
  15. ### MODULES ###
  16. ###############
  17. # Read syslog messages from default Unix socket /dev/log (e.g. via logger command)
  18. module(load="imuxsock")
  19. # Read messages from the kernel log and submits them to the syslog engine
  20. module(load="imklog")
  21. # Inject "--MARK--" messages every $Interval (seconds)
  22. #module(load="immark" Interval="600")
  23. # Read syslog messages from UDP
  24. #module(load="imudp")
  25. #input(type="imudp" port="514")
  26. # Read syslog messages from TCP
  27. #module(load="imtcp")
  28. #input(type="imtcp" port="514")
  29. #########################
  30. ### GLOBAL DIRECTIVES ###
  31. #########################
  32. # Where to place spool and state files
  33. $WorkDirectory /var/spool/rsyslog
  34. # Reduce repeating messages (default: off)
  35. #$RepeatedMsgReduction on
  36. # Set defaults for every output file
  37. $Umask 0022
  38. module(
  39. load="builtin:omfile"
  40. Template="RSYSLOG_TraditionalFileFormat"
  41. FileCreateMode="0644"
  42. DirCreateMode="0755"
  43. )
  44. # Include all conf files in /etc/rsyslog.d/
  45. $IncludeConfig /etc/rsyslog.d/*.conf