#### 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