Getting Data In

Can you help us build a query to check the time of the earliest event in an index?

Arpit_S
Path Finder

Hi,

In our instance, we have indexes that have current sizes that are more than the maximum size of the index. We just wanted to create and alert to monitor if an index has data older than the specified retention period. For example, if an index has a retention period of 90 days, it ideally should not have data for the 91st day.

Thanks.

Tags (1)
0 Karma
1 Solution

HiroshiSatoh
Champion

How's this?

| tstats earliest(_time) as firstTime WHERE index=(your index)

View solution in original post

HiroshiSatoh
Champion

How's this?

| tstats earliest(_time) as firstTime WHERE index=(your index)

Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...