# How to create an alerting using the ELK stack(email alerting only)

**URL:** https://discuss.elastic.co/t/how-to-create-an-alerting-using-the-elk-stack-email-alerting-only/48662
**Category:** Logstash
**Created:** [April 28, 2016, 10:05am UTC](https://discuss.elastic.co/t/how-to-create-an-alerting-using-the-elk-stack-email-alerting-only/48662 "2016-04-28T10:05:42Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![ashutosh25apr](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@ashutosh25apr](https://discuss.elastic.co/u/ashutosh25apr)
#### Post date: [April 28, 2016, 10:05am UTC](https://discuss.elastic.co/t/how-to-create-an-alerting-using-the-elk-stack-email-alerting-only/48662/1 "2016-04-28T10:05:42Z")

</div>

Please provide me with steps to add email alerting in ELK . Alerting with Logstash.

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [April 28, 2016, 7:40pm UTC](https://discuss.elastic.co/t/how-to-create-an-alerting-using-the-elk-stack-email-alerting-only/48662/2 "2016-04-28T19:40:41Z")

</div>

This question is too open to be answered in a meaningful way. I will say though that Logstash isn't very good for alerting. You might find Elastic's Watcher product useful, or maybe you should look into a real monitoring product like Nagios or Icinga.

---

<div class="post-metadata">

### Author: ![fbaligand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fbaligand/32/5657_2.png) [@fbaligand](https://discuss.elastic.co/u/fbaligand)
#### Post date: [May 1, 2016, 3:19pm UTC](https://discuss.elastic.co/t/how-to-create-an-alerting-using-the-elk-stack-email-alerting-only/48662/3 "2016-05-01T15:19:14Z")

</div>

As output, you can use "email" output plugin. I presume you already guess that.

In filter part, you add tag "email" to events that are relevant for an email.

And in output part :  
output {  
if "email" in [tags] {  
email {  
...  
}  
}  
}

That said, in filter part, all depends what you exactly want to do...

---

<div class="post-metadata">

### Author: ![fbaligand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fbaligand/32/5657_2.png) [@fbaligand](https://discuss.elastic.co/u/fbaligand)
#### Post date: [May 1, 2016, 3:23pm UTC](https://discuss.elastic.co/t/how-to-create-an-alerting-using-the-elk-stack-email-alerting-only/48662/4 "2016-05-01T15:23:35Z")

</div>

Another way to do what Elastic Watcher do, but in open source :  
[https://elastalert.readthedocs.io](https://elastalert.readthedocs.io)

---

<div class="post-metadata">

### Author: ![ashutosh25apr](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@ashutosh25apr](https://discuss.elastic.co/u/ashutosh25apr)
#### Post date: [May 1, 2016, 5:46pm UTC](https://discuss.elastic.co/t/how-to-create-an-alerting-using-the-elk-stack-email-alerting-only/48662/5 "2016-05-01T17:46:41Z")

</div>

Thanks trying to use elastalert

---

<div class="post-metadata">

### Author: ![fbaligand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fbaligand/32/5657_2.png) [@fbaligand](https://discuss.elastic.co/u/fbaligand)
#### Post date: [May 1, 2016, 6:22pm UTC](https://discuss.elastic.co/t/how-to-create-an-alerting-using-the-elk-stack-email-alerting-only/48662/6 "2016-05-01T18:22:13Z")

</div>

And to be complete, throttle logstash filter is really nice to detect problems to generate alerts.  
For example : more than 30 errors in 1 minute.

---

<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: [July 6, 2017, 4:59am UTC](https://discuss.elastic.co/t/how-to-create-an-alerting-using-the-elk-stack-email-alerting-only/48662/7 "2017-07-06T04:59:46Z")

</div>


