Splunk Search

Negate using the IN operator?

karadikid
Explorer

Might be a silly question, given the IN search command, is it possible to negate the query using NOT?

For example:

... error_code NOT IN (400, 402, 404, 406) | ...

 

Labels (1)
Tags (2)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
... NOT error_code IN (400, 402, 404, 406) | ...

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust
... NOT error_code IN (400, 402, 404, 406) | ...
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...