nerdexam
Splunk

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

Performance Optimization and Troubleshooting

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)
  • A
    3% (1)
  • B
    13% (4)
  • C
    10% (3)
  • D
    74% (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

#tstats command#index discovery#sourcetype enumeration#search efficiency

Community Discussion

No community discussion yet for this question.

Full SPLK-5002 Practice