# Working with gzipped files

**URL:** <https://discuss.elastic.co/t/working-with-gzipped-files/279644>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [July 26, 2021, 3:05pm UTC](https://discuss.elastic.co/t/working-with-gzipped-files/279644 "2021-07-26T15:05:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![YvorL](https://avatars.discourse-cdn.com/v4/letter/y/9fc348/32.png) [@YvorL](https://discuss.elastic.co/u/YvorL)\
**Post date:** [July 26, 2021, 3:05pm UTC](https://discuss.elastic.co/t/working-with-gzipped-files/279644/1 "2021-07-26T15:05:14Z")

</div>

Hi,

I have to work with a lot of gzipped text files but it seems Filebeat can't read them. Is there any way to read the gzipped files in a given folder and ship those to a Kafka cluster?  
I saw that maybe I could work with Logstash but I'm not sure that it'd be efficient.

Thank you!

---

<div class="post-metadata">

**Author:** ![AquaX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aquax/32/92006_2.png) [@AquaX](https://discuss.elastic.co/u/AquaX)\
**Post date:** [July 28, 2021, 7:25pm UTC](https://discuss.elastic.co/t/working-with-gzipped-files/279644/2 "2021-07-28T19:25:08Z")

</div>

No. Filebeat does not currently support reading gzipped files.

> <https://github.com/elastic/beats/issues/637>
>
> Hi,
> 
> Following \[this discussion on filebeat forum\](https://discuss.elastic.co/t/…backfilling-old-logs-with-filebeat/38428/2) I would like to ask if it is possible to implement a solution to easily backfill old gzipped logs with filebeat.
> 
> The proposed solution mentioned in the topic is to add a new dedicated \`input\_type\`.
> 
> It is also mentioned in the topic that when filebeat reaches the end of input on \`stdin\` it does not give you the hand back and waits for new lines which makes things hard to script to perform backfilling.
> 
> What are your thoughts on this ?
> 
> Thanks for your hard work.

If you setup a job to copy the files to a location that logstash is watching then that may be a good workaround.

---

<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:** [August 25, 2021, 9:25pm UTC](https://discuss.elastic.co/t/working-with-gzipped-files/279644/3 "2021-08-25T21:25:59Z")

</div>

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