# Support for handling rotated files as .gz files in filebeat

**URL:** https://discuss.elastic.co/t/support-for-handling-rotated-files-as-gz-files-in-filebeat/104858
**Category:** Beats
**Tags:** filebeat
**Created:** [October 23, 2017, 8:04am UTC](https://discuss.elastic.co/t/support-for-handling-rotated-files-as-gz-files-in-filebeat/104858 "2017-10-23T08:04:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![an.secure](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@an.secure](https://discuss.elastic.co/u/an.secure)
#### Post date: [October 23, 2017, 8:04am UTC](https://discuss.elastic.co/t/support-for-handling-rotated-files-as-gz-files-in-filebeat/104858/1 "2017-10-23T08:04:37Z")

</div>

Does filebeat support compressed files?  
Our java application is writing the logs to log.json file using logback RollingFileAppender.  
After 5MB the file is rotated like below :  
arch\_2017-10-23.1.gz  
arch\_2017-10-23.2.gz and so on.

Can I specify the arch\*.gz in the paths for filebeat to capture the data in the rotated files?

Filebeat version used : 5.6.x

---

<div class="post-metadata">

### Author: ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)
#### Post date: [October 23, 2017, 1:15pm UTC](https://discuss.elastic.co/t/support-for-handling-rotated-files-as-gz-files-in-filebeat/104858/2 "2017-10-23T13:15:29Z")

</div>

No, compressed files are not yet supported. For more information/progress have a look [at this enhancement request](https://github.com/elastic/beats/issues/637).

---

<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 20, 2017, 1:15pm UTC](https://discuss.elastic.co/t/support-for-handling-rotated-files-as-gz-files-in-filebeat/104858/3 "2017-11-20T13:15:37Z")

</div>

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