Martineau
Part of the Furniture
The parentheses not only acted as an eye-catcher in Syslog, but back when I used syslog_move.sh at the end of init-start, this used a simple grep to extract my 'signature' logger tags for boot period script execution analysis.Heh, don't do that on my account. I know I'm a bit over-zealous at times ... just be aware that if you update syslog-ng in the future and stuff starts breaking, then the `match` function is a likely suspect.
I don't remember the () usually being there around the program name, but I haven't used this script for a while, and I'm not at home to look at the log. I only use that script periodically for debugging since it makes large logs. Are they there for other entries? If not, `program` might have to match on `(VPN_Failover.sh)`.
It appears the following works...without explicit parentheses
Code:
# Put VPN_Failover.sh script messages into /opt/var/log/VPNFailover.log
destination d_vpnfailover {
file("/opt/var/log/VPNFailover.log");
};
filter f_vpnfailover {
program("VPN_Failover.sh");
};
log {
source(src);
source(kernel);
filter(f_vpnfailover);
destination(d_vpnfailover);
flags(final);
};
#eof