# How to let Logstash read more than one "charset" in the codec setting

**URL:** <https://discuss.elastic.co/t/how-to-let-logstash-read-more-than-one-charset-in-the-codec-setting/180519>\
**Category:** Logstash\
**Created:** [May 10, 2019, 8:49am UTC](https://discuss.elastic.co/t/how-to-let-logstash-read-more-than-one-charset-in-the-codec-setting/180519 "2019-05-10T08:49:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![samyo](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@samyo](https://discuss.elastic.co/u/samyo)\
**Post date:** [May 10, 2019, 8:49am UTC](https://discuss.elastic.co/t/how-to-let-logstash-read-more-than-one-charset-in-the-codec-setting/180519/1 "2019-05-10T08:49:34Z")

</div>

Hello Folks,  
i am wundering , if it is possibly, to write more than one "charset" in the codec setting in my Input , in order to let Logstash choose on of those "charset".  
Cause my Data files wich i want to index into Elastic , are differently, some of them are "UTF-8" and other are "ISO 8859-1" format .  
how can i solve this issue?  
Like the bellow Example.

```auto
input{
stdin{
 codec => plain {
 charset=>"UTF-8" 
 charset=>"ISO-8859-1"
 charset=>"ascii"
} 
}
}

```

Any Idea , i will be thankful.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [May 10, 2019, 2:34pm UTC](https://discuss.elastic.co/t/how-to-let-logstash-read-more-than-one-charset-in-the-codec-setting/180519/2 "2019-05-10T14:34:46Z")

</div>

No, I do not believe you can do that.

---

<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 7, 2019, 2:34pm UTC](https://discuss.elastic.co/t/how-to-let-logstash-read-more-than-one-charset-in-the-codec-setting/180519/3 "2019-06-07T14:34:48Z")

</div>

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