[syslog-ng] Howto configure grep to parse multiple mail recipients

Balazs Scheidler bazsi77 at gmail.com
Sun May 27 14:08:16 CEST 2012


On Fri, 2012-05-25 at 08:43 +0200, C. L. Martinez wrote:
> On Thu, May 24, 2012 at 2:32 PM, C. L. Martinez <carlopmart at gmail.com> wrote:
> > Hi all,
> >
> >  I am trying to parse some Ironport logs to cacth mutliple destination
> > recipients using grep in value option:
> >
> > recipient: $(grep ("${to_address}" != "") ${to_address})
> >
> > but it doesn't works ...
> >
> >  What am I doing wrong?? I am using syslog-ng 3.3.5 under CentOS6.
> >

$(grep) is a template function, that only makes sense to be used in a
patterndb correllation rule.

Are you using it in that context? Otherwise you'd proably be looking for
a simple filter.

-- 
Bazsi




More information about the syslog-ng mailing list