I have in my rsyslog.conf on my listener phenex.localnet for my home gateway aka hell.localnet:
module(
load="imudp"
)
input(
type="imudp"
port="514"
)
:syslogtag,contains,"led-manager" stop #stop bursts of pace-5031 led-manager messages
:syslogtag,contains,"lmd" stop #pace-5031 will attempt dhcpc6 even though ipv6 disabled, filter it
What I am trying to accomplish is to stop
these messages from entering its log file, which I've set up with dynafile elsewhere in the configuration. They tend to burst in 10-15 messages at a time at indeterminate intervals and there is no way to turn them off at the gateway device, thus, I'd like to filter them out at the listener.
│Nov 18 23:32:00 hell.localnet led-manager[1397]: pace-5031:green:phone1 default policy use count = 0 │
│Nov 18 23:32:00 hell.localnet led-manager[1397]: pace-5031:green:phone1 default policy use count = 1 │
│Nov 18 23:32:00 hell.localnet led-manager[1397]: pace-5031:green:phone2 default policy use count = 0 │
│Nov 18 23:32:00 hell.localnet led-manager[1397]: pace-5031:green:phone2 default policy use count = 1
│Nov 18 23:29:05 hell.localnet lmd[1396]: dhcp6c0: next timeout 159946560 │
│Nov 18 23:29:05 hell.localnet lmd[1396]: dhcp6c: set option request (len 8) │
│Nov 18 23:29:05 hell.localnet lmd[1396]: dhcp6c: set vendor class (len 18) │
│Nov 18 23:29:05 hell.localnet lmd[1396]: dhcp6c: dhcp6c set IA_PD prefix │
│Nov 18 23:29:05 hell.localnet lmd[1396]: dhcp6c: dhcp6c set IA_PD
I'm using Rainer script and I can't seem to nail down the syntax for this. I thought it would be good to approach this with an if-then ruleset() specific to the hell.localnet host. I've been reading documentation and examples for hours and just a little stuck here. The configuration runs cleanly with no errors described when i run sudo systemctl restart rsyslog
and then sudo systemctl status rsyslog
. The :syslogtag
lines are simply non-functional.