I have a system running Linux Mint 18.3 x64 (Sylvia) and have recently
added apcupsd to the system to support an attached APC UPS.  This uses
system logging to report events and data.  My distro comes with rsyslog
8.16.0-1 from the ubuntu xenial-updates repository.

I have added a file acpupsdlog.conf to my /etc/rsyslog.d directory to
handle the logging, but am encountering unexpected results.
As per apcupsd recommendation their log data has a facility setting of
local0.  Their example file was for syslog so I had to adapt it
slightly.  The contents of my file are:

# attempt to get apcupsd logging working properly
#
# exclude all apcupsd info by default
*.info;local0.none                    /var/log/syslog

# Everything for apcupsd goes here
local0.info;local0.!notice             /var/log/apcupsd.data
local0.notice;local0.!warn            |/var/log/apcupsd.status
local0.warn                            /var/log/apcupsd.events


This does appear to get the apcupsd logging to the /var/log/apcupsd.* as
expected, but I am also seeing the logging that goes to the
/var/log/apcupsd.data file in the /var/log/syslog file.  As per the
comments above the first functional line, I had expected none of the
apcupsd logging to be included in the /var/log/syslog file.  Is there a
problem with the line?  Is there an edge condition that got missed?

Dave

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to