Splunk Search

How can I search for events that do not contain a field?

chris
Motivator

Hi

I have defined a field for different types of events, the field is recognized in all the events I want to see it. Most likely because the regex is not good enough yet. So I am interested in seeing all the events that do not contain the field I defined.

How do I search for events that do not contain a specific field?

Thanks

Chris

1 Solution

bwooden
Splunk Employee
Splunk Employee

If I want to find all events with a field named foo

* | where isnotnull(foo)

If I want to find all events without a field named foo

* | where isnull(foo)

View solution in original post

borisalves
Path Finder

| search foo="*"

bwooden
Splunk Employee
Splunk Employee

If I want to find all events with a field named foo

* | where isnotnull(foo)

If I want to find all events without a field named foo

* | where isnull(foo)

chris
Motivator

Cool thank you or the quick reply

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...