21 Feb
2014
21 Feb
'14
8:49 a.m.
On Wed, Feb 19, 2014 at 23:12:28 +0100, Jakub Jankowski wrote:
Use a template() that utilizes $(substr) template function. See http://www.balabit.com/sites/default/files/documents/syslog-ng-ose-3.4-guide... for more details.
For the records: it seems to work nicely. I use it as follows: template t_legacy_bsd { template("$(substr \"<$PRI>$DATE $HOST $MSGHDR$MSG\" \"0\" \"1023\")\n"); template_escape(no); }; Cheers David