[syslog-ng] substr function issues

westlake westlake2012 at videotron.ca
Wed Jun 17 05:31:00 CEST 2015


this one is actually more efficient than the other one -- here I managed 
to get the template functions applied using

set("$(substr ${MSG} 7 15)", value("MACRO"));

thanks


On 16/06/15 04:27 PM, Scheidler, Balázs wrote:
> Maybe the set expression wasnt enclosed in apostrophes/quotes?
>
> On Jun 16, 2015 10:29, "westlake" <westlake2012 at videotron.ca
> <mailto:westlake2012 at videotron.ca>> wrote:
>
>     I'm stumped on a little problem with syslog-ng, basically what I'm
>     trying to do is extract text from a string and place that into a new
>     macro,
>     eg
>     -> set($(substr ${MSG} 7 12), value("${MACRO");
>
>     here the syntax checker stops short around the first dollar sign and i'm
>     not sure how else I can apply this.
>
>     thanks
>     ______________________________________________________________________________
>     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
>
>
>
> ______________________________________________________________________________
> 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
>



More information about the syslog-ng mailing list