[syslog-ng] Per-destination log_msg_size?

David Schweikert david at schweikert.ch
Fri Feb 21 09:49:54 CET 2014


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-guides/en/syslog-ng-ose-v3.4-guide-admin/html/reference-template-functions.html 
> 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


More information about the syslog-ng mailing list