# How to decode Email Subject using logstash filter?

**URL:** <https://discuss.elastic.co/t/how-to-decode-email-subject-using-logstash-filter/153827>\
**Category:** Logstash\
**Created:** [October 24, 2018, 2:03pm UTC](https://discuss.elastic.co/t/how-to-decode-email-subject-using-logstash-filter/153827 "2018-10-24T14:03:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thangld](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thangld/32/82551_2.png) [@thangld](https://discuss.elastic.co/u/thangld)\
**Post date:** [October 24, 2018, 2:03pm UTC](https://discuss.elastic.co/t/how-to-decode-email-subject-using-logstash-filter/153827/1 "2018-10-24T14:03:52Z")

</div>

Hello elastic community!  
I'm new to logstash.  
I'm using logstash filter to parse CISCO Ironport logs. But some of it has encode email Subject. How can I decode this one with logstash? Is there any filters to do it?  
Example:

- Input:  
`Subject: =?utf-8?Q?Ch=E1=BB=89=20t=E1=BB=AB=2080.000=20=C4=91=E1=BB=93ng=20khi=20=C4=91=E1=BA=B7t=20taxi=20s=C3=A2n=20bay=20N=E1=BB=99i=20B=C3=A0i=20tr=C6=B0=E1=BB=9Bc=207=20ng=C3=A0y?=`
- Output:  
`Subject: Chỉ từ 80.000 đồng khi đặt taxi sân bay Nội Bài trước 7 ngày`

Thanx so mush!

---

<div class="post-metadata">

**Author:** ![thangld](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thangld/32/82551_2.png) [@thangld](https://discuss.elastic.co/u/thangld)\
**Post date:** [October 26, 2018, 3:21am UTC](https://discuss.elastic.co/t/how-to-decode-email-subject-using-logstash-filter/153827/2 "2018-10-26T03:21:54Z")

</div>

How can I decode subject using logstash filter?  
Please help!

---

<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:** [November 23, 2018, 3:21am UTC](https://discuss.elastic.co/t/how-to-decode-email-subject-using-logstash-filter/153827/3 "2018-11-23T03:21:56Z")

</div>

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