# How to read .gz file using filebeat?

**URL:** https://discuss.elastic.co/t/how-to-read-gz-file-using-filebeat/141754
**Category:** Beats
**Tags:** filebeat
**Created:** [July 26, 2018, 12:01pm UTC](https://discuss.elastic.co/t/how-to-read-gz-file-using-filebeat/141754 "2018-07-26T12:01:13Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![sudhish\_op](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@sudhish\_op](https://discuss.elastic.co/u/sudhish_op)
#### Post date: [July 26, 2018, 12:01pm UTC](https://discuss.elastic.co/t/how-to-read-gz-file-using-filebeat/141754/1 "2018-07-26T12:01:14Z")

</div>

My setup is working fine and able to read log files. But not able to load .gz files .  
Please assist.

---

<div class="post-metadata">

### Author: ![pierhugues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierhugues/32/48383_2.png) [@pierhugues](https://discuss.elastic.co/u/pierhugues)
#### Post date: [July 26, 2018, 1:26pm UTC](https://discuss.elastic.co/t/how-to-read-gz-file-using-filebeat/141754/2 "2018-07-26T13:26:35Z")

</div>

Hello @sudhish_op, Sadly Filebeat doesn't currently support gz files we have an [issue open](https://github.com/elastic/beats/issues/637) for it.

---

<div class="post-metadata">

### Author: ![sudhish\_op](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@sudhish\_op](https://discuss.elastic.co/u/sudhish_op)
#### Post date: [July 27, 2018, 10:00am UTC](https://discuss.elastic.co/t/how-to-read-gz-file-using-filebeat/141754/3 "2018-07-27T10:00:03Z")

</div>

Thanks for your reply. Is there anyway to read gz file with Kibana as UI?. I mean using any other tool?

---

<div class="post-metadata">

### Author: ![pierhugues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierhugues/32/48383_2.png) [@pierhugues](https://discuss.elastic.co/u/pierhugues)
#### Post date: [July 27, 2018, 12:39pm UTC](https://discuss.elastic.co/t/how-to-read-gz-file-using-filebeat/141754/4 "2018-07-27T12:39:04Z")

</div>

@sudhish_op it is a one time import or you will constantly have gz files? Are theses gz files produced by a log rotate process?

---

<div class="post-metadata">

### Author: ![sudhish\_op](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@sudhish\_op](https://discuss.elastic.co/u/sudhish_op)
#### Post date: [July 27, 2018, 3:21pm UTC](https://discuss.elastic.co/t/how-to-read-gz-file-using-filebeat/141754/5 "2018-07-27T15:21:11Z")

</div>

every 1 hr new gz file will be pushed. It is produced by log rotation process and stored in different system.

I am pulling these file to my system (using scp script) and I want to keep this in gz format itself considering disk space.

---

<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 24, 2018, 3:21pm UTC](https://discuss.elastic.co/t/how-to-read-gz-file-using-filebeat/141754/6 "2018-08-24T15:21:15Z")

</div>

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