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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

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