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!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...