Security

index

Siddharthnegi
Contributor

Hello I want to see all indexes latest data time. like when did the latest data came to this index.

0 Karma
1 Solution

bowesmana
SplunkTrust
SplunkTrust

You can do

| tstats max(_time) as latest where index=* by index

but depending on the time range you use for the search it will only return data for those indexes that have data during that timespan

You can also do 

| rest /services/data/indexes count=0
| table title maxTime minTime

 

View solution in original post

bowesmana
SplunkTrust
SplunkTrust

You can do

| tstats max(_time) as latest where index=* by index

but depending on the time range you use for the search it will only return data for those indexes that have data during that timespan

You can also do 

| rest /services/data/indexes count=0
| table title maxTime minTime

 

Get Updates on the Splunk Community!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...