Splunk Search

Search for null values across multiple fields

paulyreid
New Member

Hi

I have a CSV input file that has some null values. I'm using fillnull value=NULL to make these appear in the search results.

I'm able to search if a specified field is null, for example search x=null | stats count by x.

What I'd ideally like to do is return the name of any field that has a null value. Ideally something like search *=null | stats dc(*) as *. Then I can use transpose to get the list of those field names to display as table in a dashboard.

Cheers

Tags (3)
0 Karma

sideview
SplunkTrust
SplunkTrust

The problem is going to be that coming out of an AutoHeader or CHECK_FOR_HEADER csv input, there's no difference between a defined field that is null-valued, and a completely random field like "chickenfeet" that is entirely undefined.

There are some confusing things around fields that have empty values, but in my experience this only happens when you're doing certain things in the search language down in the later pipes.

Someone else might have a better suggestion but I think you'll have to have to do it explicitly with a big set of fullnulls, and a lot of | where isnull(A) OR isnull(B) OR ...

0 Karma
Get Updates on the Splunk Community!

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...