I am using SNARE to send messages to syslog-ng (2.0.9). There are fields in the messages separated by a TAB (0x9). When syslog-ng writes this out to a file it convert the hexadecimal (0x9) to \011 (literally slash, zero, one, one). This makes the lines hard to read. How can I either convert the TAB to a space or preserve the TAB in the output. Preserving the TAB would be my preference. I did not see anything in the documentation except writing a regex to convert the character. Thanks in advance, Jim ----------------------------------------- This message, and any attachments to it, may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are notified that any use, dissemination, distribution, copying, or communication of this message is strictly prohibited. If you have received this message in error, please notify the sender immediately by return e-mail and delete the message and any attachments. Thank you.
On Fri, 2010-01-22 at 10:38 -0500, James B Horwath wrote:
I am using SNARE to send messages to syslog-ng (2.0.9). There are fields in the messages separated by a TAB (0x9). When syslog-ng writes this out to a file it convert the hexadecimal (0x9) to \011 (literally slash, zero, one, one). This makes the lines hard to read. How can I either convert the TAB to a space or preserve the TAB in the output. Preserving the TAB would be my preference.
I did not see anything in the documentation except writing a regex to convert the character.
This escaping is only performed if template-escape(yes) is set on the template that generates the message. Maybe you could turn that off? -- Bazsi
participants (2)
-
Balazs Scheidler
-
James B Horwath