Splunk Search

Negate using the IN operator?

karadikid
Engager

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
Legend
... NOT error_code IN (400, 402, 404, 406) | ...

View solution in original post

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

View solution in original post

.conf21 Now Fully Virtual!
Register for FREE Today!

We've made .conf21 totally virtual and totally FREE! Our completely online experience will run from 10/19 through 10/20 with some additional events, too!