SPLK-1001 Exam QuestionsBrowse all questions from this exam

SPLK-1001 Exam - Question 168


The better way of writing search query for index is:

Show Answer
Correct Answer: B

The correct way of writing a search query to include results from multiple indexes is to use the logical operator OR between the indexes. This ensures that the search query returns results that are present in either of the specified indexes. Therefore, the form (index=a OR index=b) is the appropriate choice.

Discussion

3 comments
Sign in to comment
yury
Oct 12, 2023

Could someone point out where this is documented please.

Cychick
Oct 20, 2023

https://github.com/subbukandula/Splunk/blob/master/Splunk%206.X%20Fundamentals%20Part%201%20(eLearning).pdf

learner_2022
Dec 6, 2023

A does not make sense according to me. Because I think that data cannot be in 2 indexes at a time. Hence A will return no results.

learner_2022
Dec 6, 2023

Hence B remains the only plausible answer.

lalalandc
Aug 16, 2024

B is correct, page 92