# Help with creating a search

**URL:** <https://discuss.elastic.co/t/help-with-creating-a-search/318450>\
**Category:** Elasticsearch\
**Created:** [November 8, 2022, 3:57pm UTC](https://discuss.elastic.co/t/help-with-creating-a-search/318450 "2022-11-08T15:57:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cdeblois](https://avatars.discourse-cdn.com/v4/letter/c/a4c791/32.png) [@cdeblois](https://discuss.elastic.co/u/cdeblois)\
**Post date:** [November 8, 2022, 3:57pm UTC](https://discuss.elastic.co/t/help-with-creating-a-search/318450/1 "2022-11-08T15:57:22Z")

</div>

Hello,

I'm trying to see if there's a way to make an API call so we can know when an index or an indices has not been written to for a specific period of time.

Is there a way to do this? I've been wracking my brain trying to learn how to make this myself, and wondering if maybe there's an easier way.

Thank you.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 9, 2022, 11:13pm UTC](https://discuss.elastic.co/t/help-with-creating-a-search/318450/2 "2022-11-09T23:13:47Z")

</div>

Welcome to our community! 😃

There's not directly, no. The easiest way to do this would be to use timestamps in your documents as a proxy for it, or look at the timestamp of the last indexing request from the Monitoring data (if you are using it).

---

<div class="post-metadata">

**Author:** ![cdeblois](https://avatars.discourse-cdn.com/v4/letter/c/a4c791/32.png) [@cdeblois](https://discuss.elastic.co/u/cdeblois)\
**Post date:** [November 10, 2022, 6:59pm UTC](https://discuss.elastic.co/t/help-with-creating-a-search/318450/3 "2022-11-10T18:59:16Z")

</div>

> [@warkolm](#):
>
> There's not directly, no. The easiest way to do this would be to use timestamps in your documents as a proxy for it, or look at the timestamp of the last indexing request from the Monitoring data (if you are using it).

Thank you. I'll see if maybe that works, or if we need to attack the problem differently.

---

<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 13, 2022, 1:04am UTC](https://discuss.elastic.co/t/help-with-creating-a-search/318450/5 "2022-12-13T01:04:15Z")

</div>

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