You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Urs Eichmann <ur...@crealogix.com> on 2007/04/13 15:05:59 UTC

Chainsaw V2 - cannot filter on MSG with NOT operator

I want to see all messages NOT containing the words 'invalid user'. I try to
insert an expression in the field "refine focus on". I tried the following
variants:
(!(msg LIKE 'invalid user*'))
(!(msg ~= 'invalid user'))
!(msg ~= 'invalid user')
msg ! ~= 'invalid user'

and so on... but always get the message "invalid expression..." showing in a
tooltip.

What is the correct syntax for a filter like this?

Thanks for any help,
Urs

-- 
View this message in context: http://www.nabble.com/Chainsaw-V2---cannot-filter-on-MSG-with-NOT-operator-tf3571494.html#a9978575
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


RE: Chainsaw V2 - cannot filter on MSG with NOT operator

Posted by Scott Deboy <sd...@comotivsystems.com>.
Currently, you need spaces around parens and operators..

! ( msg ~= 'invalid user' )


Scott Deboy
COMOTIV SYSTEMS
111 SW Columbia Street Ste. 950
Portland, OR  97201

Telephone:      503.224.7496
Cell:           503.997.1367
Fax:            503.222.0185

sdeboy@comotivsystems.com

www.comotivsystems.com



-----Original Message-----
From: Urs Eichmann [mailto:urs.eichmann@crealogix.com]
Sent: Fri 4/13/2007 6:05 AM
To: log4j-user@logging.apache.org
Subject: Chainsaw V2 - cannot filter on MSG with NOT operator
 

I want to see all messages NOT containing the words 'invalid user'. I try to
insert an expression in the field "refine focus on". I tried the following
variants:
(!(msg LIKE 'invalid user*'))
(!(msg ~= 'invalid user'))
!(msg ~= 'invalid user')
msg ! ~= 'invalid user'

and so on... but always get the message "invalid expression..." showing in a
tooltip.

What is the correct syntax for a filter like this?

Thanks for any help,
Urs

-- 
View this message in context: http://www.nabble.com/Chainsaw-V2---cannot-filter-on-MSG-with-NOT-operator-tf3571494.html#a9978575
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org