[syslog-ng]regex support

Xavier Lapie syslog-ng@lists.balabit.hu
Thu, 8 Jul 2004 18:50:32 +0200


On Thursday 08 July 2004 17:56, Joe.Reeves@Regions.com wrote:
> syslog-ng, but the only thing I have really found mention of is the
> "match" keyword that matches a simple string. What I wanted to know is if
> syslog-ng supports either posix or perl style regular expressions.

=46rom syslog-ng.conf(5):

* program(regexp to match program name)
* host(regexp to match program name)
* match(regexp to match program name)

=46rom source file filter.c:

regerr =3D regcomp(regex, re, REG_NOSUB | REG_EXTENDED);

And from regex(3):

REG_EXTENDED
 Use POSIX Extended Regular Expression syntax  when  interpreting
 regex.   If  not  set,  POSIX Basic Regular Expression syntax is
 used.

=2D-=20
bana@sitadelle.com