logmngr: simplify default PID to 0 logic

Note that the "add" directive only adds if nothing is already present.
This commit is contained in:
Erik Karlsson 2025-10-24 10:28:37 +02:00
parent 95778a4262
commit 580d24e04a

View file

@ -75,14 +75,13 @@ create_default_filters() {
append_conf " match KM*"
append_conf " add ident kernel"
append_conf " rename msg message"
append_conf " set pid 0"
append_conf ""
append_conf "[FILTER]"
append_conf " name modify"
append_conf " match SL*"
append_conf " Condition Key_Does_Not_Exist pid"
append_conf " Add pid 0"
append_conf " match *"
append_conf " add pid 0"
append_conf ""
append_conf "[FILTER]"
append_conf " name sysinfo"