[syslog-ng] patterndb and context - access fields from initial message

Balazs Scheidler bazsi77 at gmail.com
Wed Jul 9 00:39:53 CEST 2014


Yeah, this is what I wanted to mention, $(grep) iterates over all the
messages in the context and evaluates its arguments for all messages.

$(grep <syslog-ng filter> $MSG)

returns a comma delimited list of $MSG fields where the filter matches.
This is the only function that actually iterates over the context, but we
could do more of those.




On Tue, Jul 8, 2014 at 11:54 AM, Fabien Wernli <wernli at in2p3.fr> wrote:

> Hi,
>
> I'm AFK for a while but did you check out the `grep` template function?
>
> Cheers
>
> ______________________________________________________________________________
> 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
>
>


-- 
Bazsi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20140709/93cd3611/attachment.htm 


More information about the syslog-ng mailing list