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 | Forward, I’m heavy; backward, I’m not. What am I?

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

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...