Getting Data In

delete events that have a certain field empty?

halperkins
New Member

here is the scenario:
http://tinypic.com/r/1ax08/6

how can i delete the events for which the field is empty?

thanks

EDIT:
btw, i do not want to do the "delete" command which would delete the data from the actual server. I just want it removed from the search result

Tags (1)
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

In order to remove events from the search result when field is empty you could just add field=* to your search.

martin_mueller
SplunkTrust
SplunkTrust

field=* means "field is anything but empty".

0 Karma

horsefez
Motivator

@martin_mueller
How is this right?
For my understanding this means the fields value could by anything.

0 Karma

sowings
Splunk Employee
Splunk Employee

| where isnull(<field>)

gfrjonp
Explorer
  • Edit, didnt read all the way, above is correctomundo.

source= | where isnull(B)

0 Karma

sirisk
New Member

It worked for me

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...