I want to "split" my logs by tags, so an specific tag comes to an seperate logfile. Im trying to create an filter inside syslog-ng, whith an tagging.
The line original looks like this, which just catches all, despite tags or thes like, which is fine.
Code:
log { source(s_sys); filter { facility(local0); }; destination(d_testlog); };
The new one looke, like this
Ref:
https://www.syslog-ng.com/technical-...tags-filtering
Code:
log { source(s_sys); filter { facility(local0) and tags("test"); }; destination(d_testlog); flags(final);};
And the logger command like so, but I get nothing in the logfile. Any suggestions ?
(ps I can get it to work fine with rsyslog)
Code:
logger -plocal0.info -ttest teststring