Splunk Search

Finding the earliest event by Splunk server & index

kogane
Path Finder

I'm trying to come up with a query that shows me the earliest (oldest) event in each index on every server that I have. A naive way of doing this might be:

index=* | stats earliest(_time) as earliest_time by splunk_server, index

But I really don't want to run it on all available data... Is there a metadata-based query for getting the same information?

Tags (3)
0 Karma

mpaniagua_splun
Splunk Employee
Splunk Employee

Try | metadata type=hosts, this will give you am good overview

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...