Splunk Search

Remove null values from evaluated field in the search results

anasshsa
Engager

Hello, I have this query:
index=main | table sourcetype, data, context, local_endpoint, remote_endpoint
| eval Ergebnis = replace(data,"^[^\@]+","")
| search Ergebnis=*

I Need to remove the empty rows from Ergebnis field that does not have a value but it does not work!

thanks for Help 🙂

0 Karma

vnravikumar
Champion

Hi

Give a try

index=main | table sourcetype, data, context, local_endpoint, remote_endpoint
| eval Ergebnis = replace(data,"^[^\@]+","")
| search Ergebnis !=""
0 Karma

mayurr98
Super Champion

can you try :

| fillnull value=NULL Ergebnis | search NOT Ergebnis=NULL

If this does not work, pls share sample input event and the output which you are getting. Also, put your query in 101010 sample code format. Thank you.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...