[syslog-ng] Is it possible to replace a string with a new line using rewrite?
Gergely Nagy
algernon at balabit.hu
Wed Sep 21 21:20:44 CEST 2011
Luis Pugoy <lpugoy at insynchq.com> writes:
> I am trying to replace a string with a newline using rewrite. Is it
> possible? Thanks.
rewrite r_nl {
subst("<insert regexp here>",
"\n", value("MSG"));
};
Or, if you want to replace the whole MSG with a newline:
rewrite r_nlmsg { set("\n", value("MSG")); };
--
|8]
More information about the syslog-ng
mailing list