# Creating watcher for index rate to alert in case of excessive logging

**URL:** <https://discuss.elastic.co/t/creating-watcher-for-index-rate-to-alert-in-case-of-excessive-logging/278125>\
**Category:** Elasticsearch\
**Created:** [July 8, 2021, 2:50am UTC](https://discuss.elastic.co/t/creating-watcher-for-index-rate-to-alert-in-case-of-excessive-logging/278125 "2021-07-08T02:50:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarcelVarallo](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@MarcelVarallo](https://discuss.elastic.co/u/MarcelVarallo)\
**Post date:** [July 8, 2021, 2:50am UTC](https://discuss.elastic.co/t/creating-watcher-for-index-rate-to-alert-in-case-of-excessive-logging/278125/1 "2021-07-08T02:50:49Z")

</div>

How would you create a watcher to email alert you when the index rate for an index exceeds something stupid.

Use Case:  
When everything is fine we don't log too much to this index but if one of our apps has a problem it will start smashing the index as fast as it can with errors. Up to 1,000 per second easily. So we really need a watcher to email us and tell us when it exceeds 500 per second or so.

So how would you write a query to return the index rate?

---

<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 5, 2021, 2:51am UTC](https://discuss.elastic.co/t/creating-watcher-for-index-rate-to-alert-in-case-of-excessive-logging/278125/2 "2021-08-05T02:51:15Z")

</div>

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