David, How do I run in debug mode? Is I rsyslog -d ?
I am using CentOS 7 so it would be changed in systemd. =========================== Thank You; Chris Cheltenham Technology Services The School District of Philadelphia Work # 215-400-5025 Cell # 215-301-6571 -----Original Message----- From: David Lang <[email protected]> Sent: Thursday, April 26, 2018 2:05 PM To: Cheltenham, Chris <[email protected]> Cc: Cheltenham, Chris via rsyslog <[email protected]> Subject: RE: [rsyslog] excluding ip addresses On Thu, 26 Apr 2018, Cheltenham, Chris wrote: > David, > > Thanks for the reply. > > I used this > > if $fromhost-ip == '170.235.1.248' then stop if $fromhost-ip == > '170.235.1.249' then stop > > > but it did not work. > Is that the correct syntax? that works can you log using the format RSYSLOG_DebugFormat and double check that fromhost-ip is being set the way you expect it to be? > I als restarted rsyslog. yes, that is needed any time you change the config file. _______________________________________________ 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.

