Or, if you use one of the RPM distributions, I have a repo compiled once in a while from git head. You can read more about it at https://www.balabit.com/blog/rpm-packages-from-syslog-ng-git-head/ A couple of python parser related bug fixes were merged recently, so I try to update it in the coming days (I'm on sick leave right now...). Bye, Peter Czanik (CzP) <peter.czanik@balabit.com> Balabit / syslog-ng upstream https://www.balabit.com/blog/author/peterczanik/ https://twitter.com/PCzanik On Wed, Mar 22, 2017 at 7:11 AM, Fabien Wernli <wernli@in2p3.fr> wrote:
On Wed, Mar 22, 2017 at 05:57:04AM +0100, Scheidler, Balázs wrote:
In template functions you can't and should not do that. There's a python parser they was recently merged where you can change values.
But you'll need the latest master for that.
If you can't wait for the next release, there's a trick: use your template python code to generate JSON, then chain it using the json-parser :-)
____________________________________________________________ __________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/? product=syslog-ng FAQ: http://www.balabit.com/wiki/syslog-ng-faq