[syslog-ng]Backslash-escaped quotes in message strings
Balazs Scheidler
syslog-ng@lists.balabit.hu
Mon, 10 Nov 2003 10:08:20 +0100
On Sun, Nov 09, 2003 at 03:53:50PM +0100, Jos Vos wrote:
> Hi,
>
> When a single (') or double (") quote appears in a syslog message,
> this quote gets escaped with a backslash by syslog-ng, which results
> in pretty ugly output, different from what the standard Linux
> sysklogd does (this doesn't change the message).
>
> Can this be considered a bug (or is it a feature)?
this can be controlled by template_escape()
destination d_file { file("/var/log/messages" template("$MSG\n") template_escape(no)); };
--
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1