# How can I encode unicode characters in config file for logstash?

**URL:** <https://discuss.elastic.co/t/how-can-i-encode-unicode-characters-in-config-file-for-logstash/127845>\
**Category:** Logstash\
**Created:** [April 12, 2018, 3:52pm UTC](https://discuss.elastic.co/t/how-can-i-encode-unicode-characters-in-config-file-for-logstash/127845 "2018-04-12T15:52:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nneul](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nneul/32/4956_2.png) [@nneul](https://discuss.elastic.co/u/nneul)\
**Post date:** [April 12, 2018, 3:52pm UTC](https://discuss.elastic.co/t/how-can-i-encode-unicode-characters-in-config-file-for-logstash/127845/1 "2018-04-12T15:52:15Z")

</div>

i.e. I'd like to be able to do something like \u1234 instead of having the raw utf8 character in the config.

Is that possible with the config parser? I'm using 5.5 still in case it makes a difference.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [April 13, 2018, 6:19am UTC](https://discuss.elastic.co/t/how-can-i-encode-unicode-characters-in-config-file-for-logstash/127845/2 "2018-04-13T06:19:24Z")

</div>

More recent versions of Logstash has some support for escape sequences (see [https://www.elastic.co/guide/en/logstash/current/configuration-file-structure.html](https://www.elastic.co/guide/en/logstash/current/configuration-file-structure.html)) but it doesn't appear `\uNNNN` is supported.

---

<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:** [May 11, 2018, 6:19am UTC](https://discuss.elastic.co/t/how-can-i-encode-unicode-characters-in-config-file-for-logstash/127845/3 "2018-05-11T06:19:31Z")

</div>

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