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!

Index This | Why did the turkey cross the road?

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

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...