# Alerting Error rate

**URL:** <https://discuss.elastic.co/t/alerting-error-rate/234348>\
**Category:** Kibana\
**Tags:** elastic-stack-alerting\
**Created:** [May 26, 2020, 1:35pm UTC](https://discuss.elastic.co/t/alerting-error-rate/234348 "2020-05-26T13:35:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rodrigo\_Testa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rodrigo_testa/32/68274_2.png) [@Rodrigo\_Testa](https://discuss.elastic.co/u/Rodrigo_Testa)\
**Post date:** [May 26, 2020, 1:35pm UTC](https://discuss.elastic.co/t/alerting-error-rate/234348/1 "2020-05-26T13:35:10Z")

</div>

Hello,

I'm using the new alerting system and I was wondering if there's a way to make an alert for error rate in percentage as threshold. Now only is available numeric count as 20 or 50 errors in a minute and so on. One example is the following: I have 1000 transactions and 200 were errors then I have 0.20% of error rate, it will alert if my threshold was set as \> 0.10%.

Another doubt is if there's a chance to make an alert using the module Visualize or if there's a plan to do it in the future.

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [May 27, 2020, 12:08am UTC](https://discuss.elastic.co/t/alerting-error-rate/234348/2 "2020-05-27T00:08:02Z")

</div>

tagging cc @mikecote for a more detailed explanation.

---

<div class="post-metadata">

**Author:** ![myasonik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/myasonik/32/62369_2.png) [@myasonik](https://discuss.elastic.co/u/myasonik)\
**Post date:** [May 27, 2020, 4:14pm UTC](https://discuss.elastic.co/t/alerting-error-rate/234348/3 "2020-05-27T16:14:19Z")

</div>

It doesn't seem like you can do this with an index threshold alert right now though I have word from the team that they're investigating creating workflows for this.

In the mean time, I think you should be able to create this with a Watcher and some Painless scripts. Might be tricky to get working though because you'll need to get an aggregation to capture the doc count and count of matches.

---

<div class="post-metadata">

**Author:** ![Rodrigo\_Testa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rodrigo_testa/32/68274_2.png) [@Rodrigo\_Testa](https://discuss.elastic.co/u/Rodrigo_Testa)\
**Post date:** [May 27, 2020, 5:21pm UTC](https://discuss.elastic.co/t/alerting-error-rate/234348/4 "2020-05-27T17:21:34Z")

</div>

Alright! I'm going to try a Watcher and using painless script!

Thank you!

---

<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:** [June 24, 2020, 5:21pm UTC](https://discuss.elastic.co/t/alerting-error-rate/234348/5 "2020-06-24T17:21:37Z")

</div>

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