# Packetbeatでのgzipの展開について

**URL:** <https://discuss.elastic.co/t/packetbeat-gzip/69571>\
**Category:** 日本語による質問・議論はこちら\
**Created:** [December 20, 2016, 1:05pm UTC](https://discuss.elastic.co/t/packetbeat-gzip/69571 "2016-12-20T13:05:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kanekotky](https://avatars.discourse-cdn.com/v4/letter/k/87869e/32.png) [@kanekotky](https://discuss.elastic.co/u/kanekotky)\
**Post date:** [December 20, 2016, 1:05pm UTC](https://discuss.elastic.co/t/packetbeat-gzip/69571/1 "2016-12-20T13:05:40Z")

</div>

テスト用途でhttpサーバ-client間のトラフィックをpacketbeatで取得しています。  
http.response.bodyをElasticSearchに投入することはできたのですが、gzipでエンコーディングされており、中身を見ることができません。  
展開した元の形(application/jsonやtext/html)のまま、ElasticSearchに投入することはできるのでしょうか？

よろしくお願い致します。

---

<div class="post-metadata">

**Author:** ![johtani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/johtani/32/44956_2.png) [@johtani](https://discuss.elastic.co/u/johtani)\
**Post date:** [January 5, 2017, 2:32am UTC](https://discuss.elastic.co/t/packetbeat-gzip/69571/2 "2017-01-05T02:32:32Z")

</div>

httpサーバの設定で、gzipがonになっていたりしませんか？

packetbeat自体で展開する機能はないはずなので、Logstashに送って展開するなどの処理を挟む必要があるかと思います。

---

<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:** [February 2, 2017, 2:32am UTC](https://discuss.elastic.co/t/packetbeat-gzip/69571/3 "2017-02-02T02:32:48Z")

</div>

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