Code: Select all
filter f_zm { match("^zm.*"); };
destination zm { file("/var/log/zoneminder.log"); };
log { source(s_all); filter(f_zm); destination(zm); };
But using the following line
Code: Select all
filter f_messages {
level(info,notice,warn)
and not facility(auth,authpriv,cron,daemon,mail,news)
and not filter(f_zm);
};
I cannot figure out what I am doing wrong.
Edit:
I figured it out. Actually it was a silly mistake on my part Zoneminder was logging its messages to /var/log/syslog and not /var/log/messages. I edited the wrong filter in syslog-ng.conf; it should have been f_syslog instead of f_messages.