Splunk Search

Search for text in log containing say, "non contact" but not just "contact"

here2infinity
Explorer

I have logs that say both contact and non contact. I would like to distinguish them in a search with the complete "non contact" but eliminate all that just say "contact"

Labels (1)
0 Karma

impurush
Contributor

@here2infinity 
You can use like this directly

<your query> "non contacts" to show the logs only it has the term

<your query> NOT "non contacts" to show the logs only the contacts term has.

I have tested in my splunk and it is working.

0 Karma
Get Updates on the Splunk Community!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...