# Zlib::GzipFile::Error: not in gzip format with input file codec =\> "gzip\_lines"

**URL:** https://discuss.elastic.co/t/zlib-not-in-gzip-format-with-input-file-codec-gzip-lines/239334
**Category:** Logstash
**Created:** [June 30, 2020, 3:14pm UTC](https://discuss.elastic.co/t/zlib-not-in-gzip-format-with-input-file-codec-gzip-lines/239334 "2020-06-30T15:14:46Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jdelouche](https://avatars.discourse-cdn.com/v4/letter/j/a6a055/32.png) [@jdelouche](https://discuss.elastic.co/u/jdelouche)
#### Post date: [June 30, 2020, 3:14pm UTC](https://discuss.elastic.co/t/zlib-not-in-gzip-format-with-input-file-codec-gzip-lines/239334/1 "2020-06-30T15:14:46Z")

</div>

Hi,  
I am not able to use the logstash-codec-gzip\_lines plugin because it tells me that .gz files are not in gzip format, but if I check the file I find no specific issue:

```auto
gunzip -tv sl_trace.trace.gz
sl_trace.trace.gz: OK

```

```auto
gunzip --version
gunzip (gzip) 1.5
Copyright (C) 2007, 2011-2012 Free Software Foundation, Inc.
This is free software. You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.

Written by Paul Eggert.

```

With the following config:

```auto
   file {
     path => "/tmp/traces/sl_*.gz"
     codec => "gzip_lines"
     type => "sl"
   }

```

---

<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: [July 28, 2020, 3:14pm UTC](https://discuss.elastic.co/t/zlib-not-in-gzip-format-with-input-file-codec-gzip-lines/239334/2 "2020-07-28T15:14:54Z")

</div>

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