Splunk Search

Search for JSON data that does not contain a field

amanteja
Path Finder

We are sending Json formatted data into splunk. How can I search for all messages that that DO NOT contain a certain Json field, for e.g. I want to search all messages that don't contain the authorization field (fully qualified as message.request.authorization)?

Tags (3)
0 Karma
1 Solution

gkanapathy
Splunk Employee
Splunk Employee

This will work:

NOT message.request.authorization=*

See also http://answers.splunk.com/answers/6981/which-is-better-not-or

View solution in original post

0 Karma

gkanapathy
Splunk Employee
Splunk Employee

This will work:

NOT message.request.authorization=*

See also http://answers.splunk.com/answers/6981/which-is-better-not-or

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