# Codec gzip\_lines not working?

**URL:** <https://discuss.elastic.co/t/codec-gzip-lines-not-working/112271>\
**Category:** Logstash\
**Created:** [December 18, 2017, 4:00pm UTC](https://discuss.elastic.co/t/codec-gzip-lines-not-working/112271 "2017-12-18T16:00:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michel99\_7](https://avatars.discourse-cdn.com/v4/letter/m/97f17d/32.png) [@Michel99\_7](https://discuss.elastic.co/u/Michel99_7)\
**Post date:** [December 18, 2017, 4:00pm UTC](https://discuss.elastic.co/t/codec-gzip-lines-not-working/112271/1 "2017-12-18T16:00:02Z")

</div>

I saw many topics talking about this subject but nobody really answer:

- I use this gzip\_lines codec to extract log information from .csv files contained within .gz files
- the codec used in the input section is uptodate

=\> the content of .csv files is apparently not read by Logstash; the message is: "general error reading C:/Backup/data/logs/res\_LSAG\_20171210\_104.csv.gz - error: java.lang.IllegalArgumentException: Object: ?┐-Z res\_LSAG\_20171210\_104.csv ı?M?Ë0?´³ is not a legal argument to this wrapper, cause it doesn't respond to "read"." See the image below.

My code is:  
input {  
file {  
path =\> "C:/Backup/data/logs/\*.gz"  
sincedb\_path =\> "C:/Backup/Logstash/db/test.db"  
start\_position =\> "beginning"  
discover\_interval =\> 10  
stat\_interval =\> 10  
close\_older =\> 300  
codec =\> gzip\_lines {  
charset =\> "UTF-8"  
#charset =\> "ISO-8859-1"  
}  
}  
}

Any idea?

---

<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:** [January 15, 2018, 4:00pm UTC](https://discuss.elastic.co/t/codec-gzip-lines-not-working/112271/2 "2018-01-15T16:00:25Z")

</div>

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