Splunk Search

fast way to query all index's to list index names and the time/date of the last event or update

jleppert
New Member

Is there a fast way to query all index's to list just the index name and the time/date of the last event or update?
My queries are taking entirely too long. I tried an 'eventcount' query which runs fast but it only provides sourcetype names and not the index names.

Tags (1)
0 Karma
1 Solution

javiergn
Super Champion

What about this?

| dbinspect index=*
| stats max(endEpoch) as _time by index

View solution in original post

0 Karma

javiergn
Super Champion

What about this?

| dbinspect index=*
| stats max(endEpoch) as _time by index
0 Karma
Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...