SPLK-5002 · Question #29
Which of the following is the most efficient search to return a list of all visible indexes and the sourcetypes contained within them?
The correct answer is D. | tstats values(sourcetype) where index=* by index. The most efficient way to return all visible indexes and their sourcetypes is with | tstats values(sourcetype) where index=* by index. The tstats command leverages data model acceleration and metadata, making it faster and more resource-efficient than raw searches like
Question
Which of the following is the most efficient search to return a list of all visible indexes and the sourcetypes contained within them?
Options
- Aindex=* | stats count by sourcetype, index
- Bindex=* sourcetype=* | stats values(sourcetype) by index
- C| tstats values(sourcetype) where index=true
- D| tstats values(sourcetype) where index=* by index
How the community answered
(31 responses)- A3% (1)
- B13% (4)
- C10% (3)
- D74% (23)
Explanation
The most efficient way to return all visible indexes and their sourcetypes is with | tstats values(sourcetype) where index=* by index. The tstats command leverages data model acceleration and metadata, making it faster and more resource-efficient than raw searches like
Topics
Community Discussion
No community discussion yet for this question.