Splunk Search

Can I use the "IN" command like this?

twjack
Explorer
index=myIndex FieldA="A" AND LogonType IN (4,5,8,9,10,11,12)

The documentation says it is used with "eval" or "where" and returns only the value "true".

But it also seems to work as described above.

Now I'm unsure if this is "failsafe" as an initial search...

Tags (1)
0 Karma
1 Solution

FrankVl
Ultra Champion

Not sure what documentation you are referring to, but yes, since Splunk v6.6.0 you can also use it like that. See the documentation for the search command: https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Search#Multiple_field-value_comp...

View solution in original post

0 Karma

FrankVl
Ultra Champion

Not sure what documentation you are referring to, but yes, since Splunk v6.6.0 you can also use it like that. See the documentation for the search command: https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Search#Multiple_field-value_comp...

0 Karma

twjack
Explorer

Holy crap, I actually looked in the wrong documentation. I must have been blind. Thank you.

0 Karma
Get Updates on the Splunk Community!

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...

Splunk App Developers | .conf25 Recap & What’s Next

If you stopped by the Builder Bar at .conf25 this year, thank you! The retro tech beer garden vibes were ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...