# Send email alert when filebeat cannot send out log

**URL:** https://discuss.elastic.co/t/send-email-alert-when-filebeat-cannot-send-out-log/242718
**Category:** Beats
**Tags:** filebeat
**Created:** [July 27, 2020, 9:09am UTC](https://discuss.elastic.co/t/send-email-alert-when-filebeat-cannot-send-out-log/242718 "2020-07-27T09:09:25Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![iammanmale](https://avatars.discourse-cdn.com/v4/letter/i/5e9695/32.png) [@iammanmale](https://discuss.elastic.co/u/iammanmale)
#### Post date: [July 27, 2020, 9:09am UTC](https://discuss.elastic.co/t/send-email-alert-when-filebeat-cannot-send-out-log/242718/1 "2020-07-27T09:09:26Z")

</div>

we have installed filebeat on aws machines around the world. Sometimes, some machines cannot send out log, is there any want to trigger an email alert when something like that happen?

---

<div class="post-metadata">

### Author: ![mtojek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mtojek/32/63863_2.png) [@mtojek](https://discuss.elastic.co/u/mtojek)
#### Post date: [July 27, 2020, 2:18pm UTC](https://discuss.elastic.co/t/send-email-alert-when-filebeat-cannot-send-out-log/242718/2 "2020-07-27T14:18:49Z")

</div>

I think you can research Kibana Alerting: [https://www.elastic.co/what-is/kibana-alerting](https://www.elastic.co/what-is/kibana-alerting)

I don't reckon anything dedicated or embedded together with filebeat.

---

<div class="post-metadata">

### Author: ![kelk](https://avatars.discourse-cdn.com/v4/letter/k/13edae/32.png) [@kelk](https://discuss.elastic.co/u/kelk)
#### Post date: [July 27, 2020, 2:28pm UTC](https://discuss.elastic.co/t/send-email-alert-when-filebeat-cannot-send-out-log/242718/3 "2020-07-27T14:28:00Z")

</div>

How we do is

- maintain a list of beats which we intend to send events regularly (or are important) in `beats_mandatory` index and a gap for heart-beat (eg `600s`)
- Run a query, to ensure the information/heartbeat (or any type of message) has been received from that beat in the above heart-beat gap
- count values by beat, and if it's less than 1 , alert

would look something like below

 ![Screenshot 2020-07-27 at 15.35.17](https://us1.discourse-cdn.com/elastic/original/3X/f/9/f9b29cbc6f4cd27245e0dcaa034dad7e1b733822.png)

---

<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, 2020, 4:28pm UTC](https://discuss.elastic.co/t/send-email-alert-when-filebeat-cannot-send-out-log/242718/4 "2020-08-24T16:28:05Z")

</div>

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