Splunk Search

Find records with a certain field defined

ibmbaranski
Engager

I'm looking for records that have a "user_email" field defined and not equal to "unauthenticated"

 

How do I do this:

 

search index=xyz sourcetype=abc (NOT user_email=unauthenticated AND user_email=*)

This does not appear to be working - I get loads of records with no user_email field defined?

Labels (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Try something like this:

search index=xyz sourcetype=abc user_email=* NOT user_email=unauthenticated

AND is implied in the search

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust

Try something like this:

search index=xyz sourcetype=abc user_email=* NOT user_email=unauthenticated

AND is implied in the search

codebuilder
SplunkTrust
SplunkTrust

Simple yet elegant solution. Love it!

----
An upvote would be appreciated and Accept Solution if it helps!
0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...