Splunk Search

How do you dynamically remove fields containing NULL value in a table?

RonWonkers
Path Finder

Hi,

 

I have a table with dynamic fields, some of these fields contain no value or NULL, how do I remove these fields when I dont know the field name beforehand?

 

The field names are never the same so I cannot simply do | fields - name1, name2 etc..

 

Is there are way to remove every field containing no value in a table?

Labels (6)
0 Karma
1 Solution

RonWonkers
Path Finder

Thank you man this indeed deletes empty fields

0 Karma

RonWonkers
Path Finder

Thanks for your reply, I have tested it and it might work, i'm waiting for the results of any use cases.

0 Karma
Get Updates on the Splunk Community!

What’s New & Next in Splunk SOAR

Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us on ...

Your Voice Matters! Help Us Shape the New Splunk Lantern Experience

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...