rsyslog: Only do local logging for local messages.
[matthijs/servers/tika.git] / etc / rsyslog.conf
index 5dfd304d8d1224d529f62bd7714cd958303f7148..465dce4477e8c1e3f9035fc370e1fa5166440fdf 100644 (file)
@@ -52,7 +52,11 @@ $MainMsgQueueSaveOnShutdown on
 #### Local logging ####
 #######################
 
-#
+# Discard all log entries not locally generated (note that the ~ here is the
+# "discard" action, preventing the rules below from bein ran on these messages.
+if $fromhost-ip != '127.0.0.1' then ~
+
+
 # Log each facility into its own log
 auth,authpriv.*                        /var/log/rsyslog/auth.log
 cron.*                         -/var/log/rsyslog/user.log
@@ -86,21 +90,3 @@ local0,local1,local2,\
 # Emergencies are sent to everybody logged in.
 #
 *.emerg                                *
-
-########################
-#### Remote logging ####
-########################
-
-# Send all log entries to the log vserver, but queue them in memory as well as
-# on disk if needed.
-# Use a linked list for queueing
-$ActionQueueType LinkedList
-# Name to use for the queue file
-$ActionQueueFileName remote
-# infinite retries on insert failure
-$ActionResumeRetryCount -1
-# save in-memory data if rsyslog shuts down
-$ActionQueueSaveOnShutdown on
-# Disabled for now
-#*.*                           @@log.local;RSYSLOG_SyslogProtocol23Format
-