# Find not updated indices through logsatsh

**URL:** <https://discuss.elastic.co/t/find-not-updated-indices-through-logsatsh/319829>\
**Category:** Elasticsearch\
**Created:** [November 25, 2022, 2:24pm UTC](https://discuss.elastic.co/t/find-not-updated-indices-through-logsatsh/319829 "2022-11-25T14:24:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![truptir](https://avatars.discourse-cdn.com/v4/letter/t/58f4c7/32.png) [@truptir](https://discuss.elastic.co/u/truptir)\
**Post date:** [November 25, 2022, 2:24pm UTC](https://discuss.elastic.co/t/find-not-updated-indices-through-logsatsh/319829/1 "2022-11-25T14:24:35Z")

</div>

We have around 50 indices in elastic and their data are being updated daily basis. But if data is not updated in a day We want to log that index name so we can take some action.

All indexes will have updatedAt field from which we can identify the last updated time of a document.

So our goal is to run cron through logstash every night and identify which indices are not updated today.

We are able to achieve this for a single index via elasticsearch input plugin with a schedule but not finding any way for all the indices.

ELK version - 7.6.0

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 23, 2022, 2:24pm UTC](https://discuss.elastic.co/t/find-not-updated-indices-through-logsatsh/319829/2 "2022-12-23T14:24:50Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
