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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.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 ...