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!

CX Day is Coming!

Customer Experience (CX) Day is on October 7th!! We're so excited to bring back another day full of wonderful ...

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...