Well, unfortunately neither of those work arounds worked for me. Thank you for the suggestions.
-----Original Message----- From: Paul Fontenot [mailto:[email protected]] Sent: Saturday, November 16, 2013 2:27 PM To: 'Botond Botyanszki'; '[email protected]' Subject: RE: [nxlog-ce-users] Multiple criteria for drop(); Thank you for that information, I will try those work arounds to see if they will work for me -----Original Message----- From: Botond Botyanszki [mailto:[email protected]] Sent: Saturday, November 16, 2013 2:24 PM To: [email protected] Subject: Re: [nxlog-ce-users] Multiple criteria for drop(); Hi, Normally you should escape slash and parenthesis in regular expressions. Unfortunately there is a known bug in the regexp parser with the escaped slash \/ in some cases. A possible workaround is to use '.' or \x2F instead. Regards, Botond On Fri, 15 Nov 2013 16:28:50 -0700 "Paul Fontenot" <[email protected]> wrote: > Real world example - meaning I use this suppress log entries when my > ancient laptop gets too warm > > <Output outtcp> > Module om_file > File '/var/nxlog/'+$Hostname+'.log' > Exec if ($Message =~ /MCP limit exceeded/) drop(); > </Output> > > I found an example that has simple singular entries > > if($Message =~ /failed/ or $Message =~ /error/) drop(); > > But have not for the life of me figured out how to handle something > like this > > if($Message =~ /MCP limit exceeded/ or $Message =~ /(root) CMD > (/usr/lib64/sa/sa1 1 1)/) drop(); > > I get invalid character errors and nothing works. I've tried escaping > the parenthesis and slashes but nothing seems to work. ---------------------------------------------------------------------------- -- DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access Free app hosting. Or install the open source package on any LAMP server. Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native! http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk _______________________________________________ nxlog-ce-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users ------------------------------------------------------------------------------ DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access Free app hosting. Or install the open source package on any LAMP server. Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native! http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk _______________________________________________ nxlog-ce-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users
