1 # /etc/rsyslog.conf Configuration file for rsyslog v3.
3 # For more information see
4 # /usr/share/doc/rsyslog-doc/html/rsyslog_conf.html
11 $ModLoad imuxsock # provides support for local system logging
12 $ModLoad immark # provides --MARK-- message capability
13 $MarkMessagePeriod 900 # mark messages appear every 15 Minutes
15 ###########################
16 #### GLOBAL DIRECTIVES ####
17 ###########################
20 # Use traditional timestamp format.
21 # To enable high precision timestamps, comment out the following line.
23 $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
26 # Set the default permissions for all log files.
34 # Include all config files in /etc/rsyslog.d/
36 $IncludeConfig /etc/rsyslog.d/*.conf
38 # Store any queues here. This directory is not created automatically, so it
40 $WorkDirectory /var/spool/rsyslog
42 # Use a (disk-assisted) main queue
43 # Use a linked list for queueing
44 $MainMsgQueueType LinkedList
45 # Name to use for the queue file
46 $MainMsgQueueFileName main
47 # save in-memory data if rsyslog shuts down
48 $MainMsgQueueSaveOnShutdown on
50 #######################
51 #### Local logging ####
52 #######################
55 # Log each facility into its own log
56 auth,authpriv.* /var/log/rsyslog/auth.log
57 cron.* -/var/log/rsyslog/user.log
58 daemon.* -/var/log/rsyslog/daemon.log
59 kern.* -/var/log/rsyslog/kern.log
60 lpr.* -/var/log/rsyslog/lpr.log
61 mail.* -/var/log/rsyslog/mail.log
62 user.* -/var/log/rsyslog/user.log
63 local0,local1,local2,\
64 local3,local4,local5,\
65 local6,local7.* -/var/log/rsyslog/local.log
67 # Omitted facilities: syslog, news, uucp, ftp
69 # All logs end up in syslog as weel as the corresponding facility log above
70 # (except for auth, mail which only end up in the facility log for privacy
71 # reasons and debug which only ends up in the debug log below to prevent
76 mail.none -/var/log/rsyslog/syslog
78 # Debug entries end up in debug.log as well as the corresponding facility log
79 # above (except for auth and mail, which only end up in the facility logs for
83 news.none;mail.none -/var/log/rsyslog/debug.log
85 # Emergencies are sent to everybody logged in.
89 ########################
90 #### Remote logging ####
91 ########################
93 # Send all log entries to the log vserver, but queue them in memory as well as
95 # Use a linked list for queueing
96 $ActionQueueType LinkedList
97 # Name to use for the queue file
98 $ActionQueueFileName remote
99 # infinite retries on insert failure
100 $ActionResumeRetryCount -1
101 # save in-memory data if rsyslog shuts down
102 $ActionQueueSaveOnShutdown on
103 *.* @@log;RSYSLOG_ForwardFormat