Splunk Search

How to create a search to get a list of Indices?

cosmo360
New Member

Hello Splunkers,

I am relatively new with Splunk and was wondering if someone out there can please tell me which query to run to get a list of splunk INDEXes on my environment. Any assistance you can provide in that regard would be greatly appreciated.

Thanks you in advance.

Cosmo.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

There are a few ways to do that.
Go to Settings->indexes.
*Run the query | rest /services/data/indexes
*Run the query `| tstats count where index=
by index | fields - count`
And probably others.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...