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!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...