#### 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
# 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
-*.* @@log.local;RSYSLOG_SyslogProtocol23Format
-