# How to test for indexes NOT being created?

**URL:** <https://discuss.elastic.co/t/how-to-test-for-indexes-not-being-created/339346>\
**Category:** Elasticsearch\
**Created:** [July 26, 2023, 7:54pm UTC](https://discuss.elastic.co/t/how-to-test-for-indexes-not-being-created/339346 "2023-07-26T19:54:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![McJava1967](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@McJava1967](https://discuss.elastic.co/u/McJava1967)\
**Post date:** [July 26, 2023, 7:54pm UTC](https://discuss.elastic.co/t/how-to-test-for-indexes-not-being-created/339346/1 "2023-07-26T19:54:31Z")

</div>

Hi all. My ELK should be receiving data regularly, and creating a new index daily. Is there any way to automatically test if either of those is NOT happening?

---

<div class="post-metadata">

**Author:** ![eMitch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emitch/32/93607_2.png) [@eMitch](https://discuss.elastic.co/u/eMitch)\
**Post date:** [July 27, 2023, 2:08am UTC](https://discuss.elastic.co/t/how-to-test-for-indexes-not-being-created/339346/2 "2023-07-27T02:08:27Z")

</div>

Hey @McJava1967

Depending on your [version and subscription](https://www.elastic.co/subscriptions), you can use [Alerts](https://www.elastic.co/guide/en/kibana/8.9/alerting-getting-started.html) or [Watcher](https://www.elastic.co/guide/en/elasticsearch/reference/8.9/watcher-api-put-watch.html) to detect whether new data is coming in.

You could also write a script that does something similar and put it on a scheduler to check if certain indexes exist or if there is data within a certain time period.

---

<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:** [August 24, 2023, 2:08am UTC](https://discuss.elastic.co/t/how-to-test-for-indexes-not-being-created/339346/3 "2023-08-24T02:08:31Z")

</div>

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