is it possible to negate a match using pm_match? (nxlog ce version for now)
wallet
I am trying to us pm_pattern to filter messages that are approved for a 'limited' feed, and still have the full feed go to the admin feed.
I have set up the config to send the input to two feeds, that works fine.
I've then tried to use pm_pattern to match certain strings and DROP them from the restricted feed. So far no luck.
I'm sure I'm missing something really simple here, and would really appreciate if anyone had the time to check the configs for me...
in nxlog.conf (edited for brevity)...
Module pm_pattern
PatternFile "/data/conf/nxlog-patternmatch.yaml"
Module om_http
URL https:// destination string
#Batchmode none
HTTPSAllowUntrusted TRUE
HTTPSCADir /etc/ssl/certs/
HTTPSCertFile /etc/ssl/certs/ca-certificates.crt
Exec if defined $PatternID drop();
Path client2001 => client_filter => out2001,client-test
and this is the patternmatch yaml (some matchfields removed)...
2021-06-03 01:02:03
1
Client
1
client input
raw_event
regexp
rsyslogd
raw_event
regexp
NetworkManager
raw_event
regexp
Systemd
raw_event
regexp
dnf
raw_event
regexp
dbus
raw_event
regexp
chrony
raw_event
regexp
CRON
raw_event
regexp
motd
raw_event
regexp
snapd
raw_event
regexp
promtail
raw_event
regexp
nxlog
raw_event
regexp
kernel
raw_event
regexp
loki