Splunk Search

I want to ignore particular username

N92
Path Finder

I want to ignore below user name. So I written following manner is it correct?

......| where NOT (user="*$" OR user="NOT_TRANSLATED")

Now, Can I rewrite as below:

......| where NOT LIKE(user, "*$" OR "NOT_TRANSLATED")

Tags (1)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi N92,
at first in like you cannot use a boolean operator, you have to divide your condition and in addition if you use "like" you have to use "%" instead "*".
So

......| where NOT (LIKE(user, "%$") OR LIKE(user, "NOT_TRANSLATED") ) 

Bye.
Giuseppe

View solution in original post

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi N92,
at first in like you cannot use a boolean operator, you have to divide your condition and in addition if you use "like" you have to use "%" instead "*".
So

......| where NOT (LIKE(user, "%$") OR LIKE(user, "NOT_TRANSLATED") ) 

Bye.
Giuseppe

0 Karma
Get Updates on the Splunk Community!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...