Hi folks, I've got a small feature request regarding the $MSGONLY macro. I've noticed there is a colon ':' hard coded in macros.c as separator between preamble and the message content. I would like to have this character configurable. We use a lot of solaris boxes sending messages using the logger command and it puts some additional information in brackets in front of the message which I don't want to see in my logfiles. So I hardcoded the closing bracket ']' into macros.c as a workaroung to achieve the desired result. It would be nice to have a parameter in the config file, say "msgonly_sep" or something like that, so I don't have to patch new releases of syslog-ng. Regards Thomas Der Inhalt dieser E-Mail ist vertraulich. Falls Sie nicht der angegebene Empfänger sind oder falls diese E-Mail irrtümlich an Sie adressiert wurde, verständigen Sie bitte den Absender sofort und löschen Sie die E-Mail sodann. Das unerlaubte Kopieren sowie die unbefugte Übermittlung sind nicht gestattet. Die Sicherheit von Übermittlungen per E-Mail kann nicht garantiert werden. Falls Sie eine Bestätigung wünschen, fordern Sie bitte den Inhalt der E-Mail als Hardcopy an. The contents of this e-mail are confidential. If you are not the named addressee or if this transmission has been addressed to you in error, please notify the sender immediately and then delete this e-mail. Any unauthorized copying and transmission is forbidden. E-Mail transmission cannot be guaranteed to be secure. If verification is required, please request a hard copy version.
Thomas Lohschmidt <thomas.lohschmidt@lbbw.de> - Fri, Dec 03, 2004:
I've got a small feature request regarding the $MSGONLY macro. I've noticed there is a colon ':' hard coded in macros.c as separator between preamble and the message content. I would like to have this character configurable. We use a lot of solaris boxes sending messages using the logger command and it puts some additional information in brackets in front of the message which I don't want to see in my logfiles.
You can also configure your "log" kernel driver not to log this, but that's just a quick workaround if you're not interested for this information: https://lists.balabit.hu/pipermail/syslog-ng/2004-March/005848.html BR, -- Loïc Minier <lool@dooz.org>
participants (2)
-
Loïc Minier
-
Thomas Lohschmidt