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!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...