# How to decompress gzip field in message

**URL:** <https://discuss.elastic.co/t/how-to-decompress-gzip-field-in-message/132019>\
**Category:** Logstash\
**Created:** [May 16, 2018, 2:50am UTC](https://discuss.elastic.co/t/how-to-decompress-gzip-field-in-message/132019 "2018-05-16T02:50:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shell.b2t](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@shell.b2t](https://discuss.elastic.co/u/shell.b2t)\
**Post date:** [May 16, 2018, 2:50am UTC](https://discuss.elastic.co/t/how-to-decompress-gzip-field-in-message/132019/1 "2018-05-16T02:50:18Z")

</div>

Hi:

i have same problem ,my message as follows:

```
http.request.headers.accept: text/html,application/xhtml+xml,application/xml;
http.request.headers.accept-encoding: gzip, deflate
http.request.headers.accept-language: zh-CN,zh;q=0.9
http.request.headers.content-length: 0
http.request.headers.host: 192.168.0.147:8888
http.request.headers.referer: http://192.168.0.147:8888//nice%20ports,/Trinity.txt.bak
http.request.headers.user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko)   	
http.response.body ���M-IT�())�M-,�,�U*JM+J-�PJ��+I�+�U230Pҷ����P�Q�eRY����P�ZQ��Q��c����XT�Zb[Z��k��6&#51D�d����]��������n;s�ǵ�6�Q��>L]R~J%H}�ݹ-W/m�{�����?o=ri��g��}�ש��?Y����[���|���-G�.^s�ƅC���x�����aW�ߺ�΁�W6.\l�_2Nf.ة@ɹ�
http.response.code: 200
http.response.headers.content-encoding: gzip

```

my env as follows:

- Version: logstash 5.1.2
- Operating System: CentOS Linux release 7.3.1611 (Core)

My needs :  
decompress the http.response.body with gzip

somebody can help me ?

---

<div class="post-metadata">

**Author:** ![shell.b2t](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@shell.b2t](https://discuss.elastic.co/u/shell.b2t)\
**Post date:** [May 17, 2018, 9:59am UTC](https://discuss.elastic.co/t/how-to-decompress-gzip-field-in-message/132019/2 "2018-05-17T09:59:23Z")

</div>

somebody can help you?

---

<div class="post-metadata">

**Author:** ![shell.b2t](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@shell.b2t](https://discuss.elastic.co/u/shell.b2t)\
**Post date:** [May 24, 2018, 1:37am UTC](https://discuss.elastic.co/t/how-to-decompress-gzip-field-in-message/132019/3 "2018-05-24T01:37:51Z")

</div>

@magnusbaeck can you give same suggestion

---

<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 21, 2018, 1:38am UTC](https://discuss.elastic.co/t/how-to-decompress-gzip-field-in-message/132019/4 "2018-06-21T01:38:10Z")

</div>

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