Splunk Search

Firewall logs

rahul8777
Explorer

sourcetype=cp_log action!=Drop OR action!=Reject OR action!=dropped 

I  am socked ,when i am searching with above query in Splunk search for my checkpoint logs  .it showing me Drop traffic ,although i have clearly mentioned in query that i don't need Drop traffic(action!=Drop)

Kindly help me on this!

Labels (1)
0 Karma
1 Solution

rahul8777
Explorer
0 Karma

rahul8777
Explorer

Thanks kamlesh

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@rahul8777 

You have used OR operator for filter , If you want to exclude multiple terms or values you need to use AND operator,  like 

sourcetype=cp_log (action!=Drop AND action!=Reject AND action!=dropped )

 

Thanks
KV
▄︻̷̿┻̿═━一  😜

If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated. 

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...