Splunk Search

How to Remove Rows With "NULL"?

jpfrancetic
Path Finder

Greetings Splunk Community,

I am currently working on a search and I am trying to drop rows that have "NULL" in them. The problem I am running into is that some of my rows with "NULL" have things like "nullnullNULL" or "nullNULL".  Is there a way i can remove the any row that has the "NULL" value regardless of other info in it?

Thanks in advance!

Labels (3)
0 Karma

PickleRick
SplunkTrust
SplunkTrust

If you want to exclude all events that have the string NULL (case sensitive) anywhere in them, do

| regex _raw!="NULL"

You can also match against single fields

0 Karma
Get Updates on the Splunk Community!

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...

Splunk App Dev Community Updates – What’s New and What’s Next

Welcome to your go-to roundup of everything happening in the Splunk App Dev Community! Whether you're building ...

The Latest Cisco Integrations With Splunk Platform!

Join us for an exciting tech talk where we’ll explore the latest integrations in Cisco + Splunk! We’ve ...