# Elastisearch alert issue

**URL:** <https://community.grafana.com/t/elastisearch-alert-issue/10780>\
**Category:** Configuration\
**Created:** [September 26, 2018, 11:04am UTC](https://community.grafana.com/t/elastisearch-alert-issue/10780 "2018-09-26T11:04:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nordanfors](https://avatars.discourse-cdn.com/v4/letter/n/e19b73/32.png) [@nordanfors](https://community.grafana.com/u/nordanfors)\
**Post date:** [September 26, 2018, 11:04am UTC](https://community.grafana.com/t/elastisearch-alert-issue/10780/1 "2018-09-26T11:04:31Z")

</div>

Hi,

I am having problems alering on a elasticsearch graph panel. I am doing a simple lucene search and counting the number of docs returned.I would like to set up an alarm that will be triggered if the number of docs exceed a certain threshold for a specified time. However the alert function does not seem to be able to read any data. All I get is the no data state.

The metric:

 ![image](https://us1.discourse-cdn.com/grafana/original/2X/3/369f50c7e1028b91c3c9869208fd166f136f4f26.png)

The alert:

 ![image](https://us1.discourse-cdn.com/grafana/original/2X/e/e57469bf308634fcd624e84cd1477c24d57af753.png)

I am quite new to this so I might be doing things the wrong way. Any ideas why I get no data?

---

<div class="post-metadata">

**Author:** ![torkel](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/torkel/32/20_2.png) [@torkel](https://community.grafana.com/u/torkel)\
**Post date:** [September 26, 2018, 7:14pm UTC](https://community.grafana.com/t/elastisearch-alert-issue/10780/2 "2018-09-26T19:14:36Z")

</div>

you date histogram interval is 10m but your alert query time range is only 5m (see the conditions, says query A, from 5m to now)

---

<div class="post-metadata">

**Author:** ![nordanfors](https://avatars.discourse-cdn.com/v4/letter/n/e19b73/32.png) [@nordanfors](https://community.grafana.com/u/nordanfors)\
**Post date:** [September 27, 2018, 8:26am UTC](https://community.grafana.com/t/elastisearch-alert-issue/10780/3 "2018-09-27T08:26:42Z")

</div>

Thanks Torkel, I tried changing the time range but still no data. A question: We are on hosted grafana and are currently accessing the ES datasource using browser mode, am I correct in assuming the alerting engine is also querying ES using browser mode or are those requests in fact originating from the server?

---

<div class="post-metadata">

**Author:** ![anon34853223](https://avatars.discourse-cdn.com/v4/letter/a/71c47a/32.png) [@anon34853223](https://community.grafana.com/u/anon34853223)\
**Post date:** [October 3, 2018, 8:57am UTC](https://community.grafana.com/t/elastisearch-alert-issue/10780/4 "2018-10-03T08:57:39Z")

</div>

Alerting always queries from the server

---

<div class="post-metadata">

**Author:** ![nordanfors](https://avatars.discourse-cdn.com/v4/letter/n/e19b73/32.png) [@nordanfors](https://community.grafana.com/u/nordanfors)\
**Post date:** [October 4, 2018, 11:17am UTC](https://community.grafana.com/t/elastisearch-alert-issue/10780/5 "2018-10-04T11:17:24Z")

</div>

That explains a lot then, thanks for your reply. 👍
