# Integration elastalert and elasticsearch

**URL:** <https://discuss.elastic.co/t/integration-elastalert-and-elasticsearch/199405>\
**Category:** Elasticsearch\
**Created:** [September 13, 2019, 10:13am UTC](https://discuss.elastic.co/t/integration-elastalert-and-elasticsearch/199405 "2019-09-13T10:13:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zmira\_meriem](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zmira_meriem/32/49360_2.png) [@zmira\_meriem](https://discuss.elastic.co/u/zmira_meriem)\
**Post date:** [September 13, 2019, 10:13am UTC](https://discuss.elastic.co/t/integration-elastalert-and-elasticsearch/199405/1 "2019-09-13T10:13:53Z")

</div>

```
hi i configure elastalert for alerting via mail if disk used is > 50%.

```

my config is:  
name: Disk alert

type: metric\_aggregation

es\_host: elasticsearch\_ip

es\_port: 9200

index: metricbeat-\*

#timeframe:

# hours: 1

#buffer\_time:

# hours: 1

metric\_agg\_key: system.fsstat.total\_size.used

metric\_agg\_type: avg

query\_key: beat.hostname

doc\_type: metricsets

max\_threshold: 0.5

bucket\_interval:

seconds: 60

sync\_bucket\_interval: true

my issue is :

Ran Disk alert from 2019-09-13 11:05 WEST to 2019-09-13 11:09 WEST: 0 query hits (0 already seen), 0 matches, 0 alerts sent

i can't get no email plllz someone can help me????

---

<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:** [October 11, 2019, 10:13am UTC](https://discuss.elastic.co/t/integration-elastalert-and-elasticsearch/199405/2 "2019-10-11T10:13:54Z")

</div>

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