# Log event on codec error

**URL:** https://discuss.elastic.co/t/log-event-on-codec-error/131658
**Category:** Logstash
**Created:** [May 14, 2018, 5:09am UTC](https://discuss.elastic.co/t/log-event-on-codec-error/131658 "2018-05-14T05:09:15Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![pjanzen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pjanzen/32/13756_2.png) [@pjanzen](https://discuss.elastic.co/u/pjanzen)
#### Post date: [May 14, 2018, 5:09am UTC](https://discuss.elastic.co/t/log-event-on-codec-error/131658/1 "2018-05-14T05:09:15Z")

</div>

HI All,

On a regular basis I am getting this is my logs.

> [2018-05-14T07:06:11,026][WARN][logstash.codecs.plain] Received an event that has a different character encoding than you configured. {:text=\>"z\xA5\xAD\t\xED7\x87\u001A\_}\xDD)\xC76\x87\fze\u001D\xC4mK\r\xD1(j8\xBE锣ч圐\x86\xAD\xAAe\u001C{ծ\xE97\u001C\xDFvʱ\x8E\xB5ϖԎ\xE8\v\xBF=71\x8E'\xEB\n", :expected\_charset=\>"UTF-8"}

In it self this is not a problem, it is a warning. From a ops point of view I would like to see the event that triggers this warning. Is there a way to log this event aswell?

Thank you for any reply.  
Paul.

---

<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: [June 11, 2018, 5:09am UTC](https://discuss.elastic.co/t/log-event-on-codec-error/131658/2 "2018-06-11T05:09:27Z")

</div>

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