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!

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

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...