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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...