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 the End of Support for Splunk Add-on Builder Means for You

Hello Splunk Community! We want to share an important update regarding the future of the Splunk Add-on Builder ...

Solve, Learn, Repeat: New Puzzle Channel Now Live

Welcome to the Splunk Puzzle PlaygroundIf you are anything like me, you love to solve problems, and what ...

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...