14 Jan
2011
14 Jan
'11
11:31 a.m.
On Thu, 2011-01-13 at 13:22 -0500, Champ Clark III [Softwink] wrote:
On second read, $MSG's behaviour seems to be dependent upon what version of syslog-ng you're using. According to the documentation, syslog-ng prior to 3.0 had the program name and the pid in $MSG, in 3.0 and past that, $MSG is synonymous to $MSGONLY.
I'm not sure whether <3.0 contains $MSGONLY, but if they do, then all is well, and one can use the same macro for all versions.
Hopefully $MSGONLY is backward compatible with in < 3.0. I'll have to test that. I'll also make a notation in the documentation about this as well. Thanks for the input.
yes, MSGONLY has been present in syslog-ng for a while, definitely introduced earlier than 3.0. -- Bazsi