# Error notification, or log parser?

**URL:** <https://discuss.elastic.co/t/error-notification-or-log-parser/7663>\
**Category:** Elasticsearch\
**Created:** [May 11, 2012, 4:57pm UTC](https://discuss.elastic.co/t/error-notification-or-log-parser/7663 "2012-05-11T16:57:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nick\_Hoffman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nick_hoffman/32/1872_2.png) [@Nick\_Hoffman](https://discuss.elastic.co/u/Nick_Hoffman)\
**Post date:** [May 11, 2012, 4:57pm UTC](https://discuss.elastic.co/t/error-notification-or-log-parser/7663/1 "2012-05-11T16:57:27Z")

</div>

Hi guys. Is there a way to configure ES to notify someone or something when  
an error occurs? Alternatively, is there an ES log parser for finding  
errors in ES log files?

If neither exist, what's the recommended way to keep abreast of errors?

Thanks,  
Nick

---

<div class="post-metadata">

**Author:** ![Nick\_Hoffman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nick_hoffman/32/1872_2.png) [@Nick\_Hoffman](https://discuss.elastic.co/u/Nick_Hoffman)\
**Post date:** [May 11, 2012, 5:04pm UTC](https://discuss.elastic.co/t/error-notification-or-log-parser/7663/2 "2012-05-11T17:04:23Z")

</div>

So ES logs messages using Log4j, which definitely supports email  
notifications. Is it possible to conifgure logging.yml to send emails when  
an error occurs?

---

<div class="post-metadata">

**Author:** ![Eric\_Jain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eric_jain/32/834_2.png) [@Eric\_Jain](https://discuss.elastic.co/u/Eric_Jain)\
**Post date:** [May 11, 2012, 6:55pm UTC](https://discuss.elastic.co/t/error-notification-or-log-parser/7663/3 "2012-05-11T18:55:53Z")

</div>

On May 11, 10:04 am, Nick Hoffman [n...@deadorange.com](mailto:n...@deadorange.com) wrote:

> So ES logs messages using Log4j, which definitely supports email  
> notifications. Is it possible to conifgure logging.yml to send emails when  
> an error occurs?

Haven't tried that but it should work?

Another solution ($) is Papertrail (via log4j syslog appender), see  
[Java log4j - Papertrail](http://help.papertrailapp.com/kb/configuration/java-log4j-logging).

---

<div class="post-metadata">

**Author:** ![Nick\_Hoffman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nick_hoffman/32/1872_2.png) [@Nick\_Hoffman](https://discuss.elastic.co/u/Nick_Hoffman)\
**Post date:** [May 14, 2012, 4:50am UTC](https://discuss.elastic.co/t/error-notification-or-log-parser/7663/4 "2012-05-14T04:50:03Z")

</div>

Hey Eric. Any idea how you might configure logging.yml to fire off emails  
when errors occur?

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [May 15, 2012, 8:31pm UTC](https://discuss.elastic.co/t/error-notification-or-log-parser/7663/5 "2012-05-15T20:31:07Z")

</div>

Never configured log4j with mail notifications, but configuration wise, the  
yml is basically the properties based configuration of log4j with  
properties simply squashed down.

On Mon, May 14, 2012 at 7:50 AM, Nick Hoffman [nick@deadorange.com](mailto:nick@deadorange.com) wrote:

> Hey Eric. Any idea how you might configure logging.yml to fire off emails  
> when errors occur?

---

<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, 3:28am UTC](https://discuss.elastic.co/t/error-notification-or-log-parser/7663/6 "2017-07-06T03:28:43Z")

</div>


