QuestionQ156

VerifiedSearch Language Fundamentals

The better way to write a search query for an index is:

Explanation

In Splunk searches, adjacent terms imply AND, whereas OR returns events matching either specified index. Grouping the alternatives as (index=a OR index=b) therefore searches both indexes correctly.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!