From 011915ac6513a85cec1583e807cd6b4209ccd6b4 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Wed, 29 Feb 2012 16:36:27 +0100 Subject: [PATCH] rsyslog: Only do local logging for local messages. --- etc/rsyslog.conf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/etc/rsyslog.conf b/etc/rsyslog.conf index 9d1aac1..465dce4 100644 --- a/etc/rsyslog.conf +++ b/etc/rsyslog.conf @@ -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 -- 2.30.2