Codec gzip_lines not working?

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?

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