Getting Data In

Query to list All indexes and sourcetypes of All Apps present in an instance

rizshez
Engager

I need help to find a query that can list every source types and indexes of each and every app present in the search head or an instance. Is it possible to get the results using SPL?

Labels (5)
0 Karma

splunkcol
Builder

Hi, I'm also new, I don't know if what I'm going to answer is helpful, I'll still try


index=* |stats count by index sourcetype app |sort -count

rizshez
Engager

What I am trying to achieve is get list of all sourcetypes and indexes of TA. By that I mean what sourcetype and indexes is that specific TA is using.

0 Karma
Get Updates on the Splunk Community!

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL  The Splunk AI Assistant for SPL ...

Buttercup Games: Further Dashboarding Techniques (Part 5)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Customers Increasingly Choose Splunk for Observability

For the second year in a row, Splunk was recognized as a Leader in the 2024 Gartner® Magic Quadrant™ for ...