Deployment Architecture

Data Feed Status in splunk: How  I would know when the last time data came in under any index/sourcetype?



How  I would know when the last time data came in under any index/sourcetype?  I have one query (see below) is showing me the feed status by index. But, my objective is to find when the last time data was fed to  indexes/source types. Any help will be highly appreciated. Thank you!

| tstats prestats=t count where earliest=-7d@d latest=-0d@d index=* by index, _time span=1d | timechart useother=false limit=0 span=1d count by index


Labels (2)
0 Karma


Try this search

|tstats values(sourcetype) as Sourcetype latest(_time) as Time groupby index,sourcetype|fields - Sourcetype | convert ctime(Time)

 It will give you a table of the last day an event was received by index & sourcetype.



Thank you so much for your quick response, greatly appreciated. It's giving be only the status for main index and its source you think following going to work, how ever it's computationally very you have any other optimal solutions ?

index=*|stats count values(sourcetype) as Sourcetype latest(_time) as Time by index|fields - count | convert ctime(Time)

0 Karma
Get Updates on the Splunk Community!

New Release | Splunk Enterprise 9.3

Admins and Analyst can benefit from:  Seamlessly route data to your local file system to save on storage ...

2024 Splunk Career Impact Survey | Earn a $20 gift card for participating!

Hear ye, hear ye! The time has come again for Splunk's annual Career Impact Survey!  We need your help by ...

Optimize Cloud Monitoring

  TECH TALKS Optimize Cloud Monitoring Tuesday, August 13, 2024  |  11:00AM–12:00PM PST   Register to ...