# Is there a way to convert a unicode escape sequence within the Logstash pipeline so that the actual emoji icon is show within Elastic?

**URL:** <https://discuss.elastic.co/t/is-there-a-way-to-convert-a-unicode-escape-sequence-within-the-logstash-pipeline-so-that-the-actual-emoji-icon-is-show-within-elastic/336002>\
**Category:** Logstash\
**Created:** [June 14, 2023, 5:04pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-convert-a-unicode-escape-sequence-within-the-logstash-pipeline-so-that-the-actual-emoji-icon-is-show-within-elastic/336002 "2023-06-14T17:04:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![farnazpatel](https://avatars.discourse-cdn.com/v4/letter/f/90ced4/32.png) [@farnazpatel](https://discuss.elastic.co/u/farnazpatel)\
**Post date:** [June 14, 2023, 5:04pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-convert-a-unicode-escape-sequence-within-the-logstash-pipeline-so-that-the-actual-emoji-icon-is-show-within-elastic/336002/1 "2023-06-14T17:04:38Z")

</div>

I am sending messages from Kafka in to Logstash and then through to Elastic, some of the messages contain emojis, these emojis are converted to Unicode escape characters when being stored in Kafka e.g.

😊 ---\> is converted to \ud83d\ude0a

I want Logstash to convert \ud83d\ude0a back in to 😊 when processing my message so that the actual emoji icon is shown within elastic, instead of the unicode version. I have researched different ways to do this such as using ruby gems (emoji and logstash-filter-emoji), however there are no examples on how these ruby gems can be used within Logstash.

- [unicode-emoji | RubyGems.org | your community gem host](https://rubygems.org/gems/unicode-emoji)
- [logstash-filter-emoji | RubyGems.org | your community gem host](https://rubygems.org/gems/logstash-filter-emoji/versions/1.0.2)

Is there a way achieve this within the Logstash pipeline ?

---

<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 12, 2023, 5:04pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-convert-a-unicode-escape-sequence-within-the-logstash-pipeline-so-that-the-actual-emoji-icon-is-show-within-elastic/336002/2 "2023-07-12T17:04:51Z")

</div>

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