# Best Practice for handling gz, bz2 compressed file

**URL:** https://discuss.elastic.co/t/best-practice-for-handling-gz-bz2-compressed-file/74731
**Category:** Beats
**Tags:** filebeat
**Created:** [February 11, 2017, 1:25am UTC](https://discuss.elastic.co/t/best-practice-for-handling-gz-bz2-compressed-file/74731 "2017-02-11T01:25:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![vramakrishnan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vramakrishnan/32/31750_2.png) [@vramakrishnan](https://discuss.elastic.co/u/vramakrishnan)
#### Post date: [February 11, 2017, 1:25am UTC](https://discuss.elastic.co/t/best-practice-for-handling-gz-bz2-compressed-file/74731/1 "2017-02-11T01:25:54Z")

</div>

1. Does Filebeat have capability to decode compressed file - gz, bz2 input ?
2. If not, what is the best practice suggested ? (filebeat in conjunction with other utilities, plugins etc)

---

<div class="post-metadata">

### Author: ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)
#### Post date: [February 14, 2017, 9:13am UTC](https://discuss.elastic.co/t/best-practice-for-handling-gz-bz2-compressed-file/74731/2 "2017-02-14T09:13:56Z")

</div>

Currently it doesn't. There is an ongoing discussion if we should support it. See [https://github.com/elastic/beats/pull/3070](https://github.com/elastic/beats/pull/3070) It would be very interesting to hear more about your use case here.

What you could do, is use a tool to unzip the content and use filebeat with stdin prospector to fetch the data.

---

<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: [March 14, 2017, 9:14am UTC](https://discuss.elastic.co/t/best-practice-for-handling-gz-bz2-compressed-file/74731/3 "2017-03-14T09:14:09Z")

</div>

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