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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...