# Help with log configuration

**URL:** <https://discuss.elastic.co/t/help-with-log-configuration/26182>\
**Category:** Elasticsearch\
**Created:** [July 23, 2015, 6:08pm UTC](https://discuss.elastic.co/t/help-with-log-configuration/26182 "2015-07-23T18:08:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabioebner](https://avatars.discourse-cdn.com/v4/letter/f/a3d4f5/32.png) [@fabioebner](https://discuss.elastic.co/u/fabioebner)\
**Post date:** [July 23, 2015, 6:08pm UTC](https://discuss.elastic.co/t/help-with-log-configuration/26182/1 "2015-07-23T18:08:47Z")

</div>

I'm trying to configure to elastic send an email with log error, but without success

i trying this:

```
  smtp:
type: SMTPAppender
BufferSize: "2" 
SMTPHost: smtp.gmail.com
SMTPPort: "465"
SMTPProtocol: smtps
SMTPUsername: user
SMTPPassword: pas
From: user
To: fabioebner@gmail.com
Subject: "Log de Parna por exemplo"
layout:
  type: pattern
  conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"

```

can samone help me?

tks

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 23, 2015, 9:29pm UTC](https://discuss.elastic.co/t/help-with-log-configuration/26182/2 "2015-07-23T21:29:55Z")

</div>

I'm not really following, how are you trying to send this from ES?

---

<div class="post-metadata">

**Author:** ![fabioebner](https://avatars.discourse-cdn.com/v4/letter/f/a3d4f5/32.png) [@fabioebner](https://discuss.elastic.co/u/fabioebner)\
**Post date:** [July 24, 2015, 12:48am UTC](https://discuss.elastic.co/t/help-with-log-configuration/26182/3 "2015-07-24T00:48:39Z")

</div>

Yes. i wanna to every erro in ES send the log to my email,

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 24, 2015, 12:50am UTC](https://discuss.elastic.co/t/help-with-log-configuration/26182/4 "2015-07-24T00:50:56Z")

</div>

You might want to use Logstash to do this instead.

---

<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 5, 2017, 11:59pm UTC](https://discuss.elastic.co/t/help-with-log-configuration/26182/5 "2017-07-05T23:59:22Z")

</div>


