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
Influencer

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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

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 ...