# Can filebeat recognize .gz log files?

**URL:** <https://discuss.elastic.co/t/can-filebeat-recognize-gz-log-files/332961>\
**Category:** Logstash\
**Created:** [May 9, 2023, 3:06pm UTC](https://discuss.elastic.co/t/can-filebeat-recognize-gz-log-files/332961 "2023-05-09T15:06:24Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [May 11, 2023, 2:49am UTC](https://discuss.elastic.co/t/can-filebeat-recognize-gz-log-files/332961/2 "2023-05-11T02:49:18Z")

</div>

Hi @talka Welcome to the communty!

Sorry to have your first post be this...

Currently, beats do not support backfilling archived logs. ☹

You have 2 choices ...  
Temporaryily uncompress them or  
perhaps take a look at [this solution](https://discuss.elastic.co/t/filebeat-on-demand-loading-compressed-gz-files-from-stdin/184159)

Yeah, I know... painful but that is where we stand

---

_[View the full topic](https://discuss.elastic.co/t/can-filebeat-recognize-gz-log-files/332961)._
