# Received an event that has a different character encoding than you configured

**URL:** <https://discuss.elastic.co/t/received-an-event-that-has-a-different-character-encoding-than-you-configured/70251>\
**Category:** Logstash\
**Created:** [December 30, 2016, 5:05am UTC](https://discuss.elastic.co/t/received-an-event-that-has-a-different-character-encoding-than-you-configured/70251 "2016-12-30T05:05:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sid.sidhant44](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sid.sidhant44/32/14144_2.png) [@sid.sidhant44](https://discuss.elastic.co/u/sid.sidhant44)\
**Post date:** [December 30, 2016, 5:05am UTC](https://discuss.elastic.co/t/received-an-event-that-has-a-different-character-encoding-than-you-configured/70251/1 "2016-12-30T05:05:42Z")

</div>

**Received an event that has a different character encoding than you configured. {text=\>"log message" :expected\_charset=\>"UTF-8", :level=\>:warn** }

I have tried setting JAVA\_TOOL\_OPTIONS="-Dfile.encoding=UTF-8". // and "ISO-8859-1" too  
I have tried with specifying:  
codec =\> plain {  
charset =\> "UTF-8" // and "ISO-8859-1" too  
}  
None this is giving me the output.  
My logstash configuration file is:

input {  
file {  
path =\> "/opt/app/jboss/home/instances/SAGM-QA01-AGENT01/standalone/log/server.log"  
start\_position =\> beginning  
sincedb\_path =\> "/dev/null"

}  
file {  
path =\> "/opt/app/jboss/home/instances/SAGM-QA01-AUX/standalone/log/server.log"  
start\_position =\> beginning  
sincedb\_path =\> "/dev/null"  
}  
}  
}output {  
stdout{  
codec =\> rubydebug  
}

redis { host =\> "10.30.8.179" data\_type =\> "list" key =\> "logstash" }  
}  
filter{  
multiline {  
pattern =\> "^%{TIMESTAMP\_ISO8601}"  
negate =\> true  
what =\> "previous"  
}  
}

Please help me in fixing this.

---

<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:** [January 27, 2017, 5:05am UTC](https://discuss.elastic.co/t/received-an-event-that-has-a-different-character-encoding-than-you-configured/70251/2 "2017-01-27T05:05:46Z")

</div>

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