Unable to gunzip file which is created through logstash gzip =>true , in a file plugin

(Avanish Kumar) #1

We are unable to gunzip compressed file created through logstash.
For some file it is successful but for other fails with below error. Request you to address this issue.

// [root@mymachine]# gunzip application_2018-05-22-07.log.gz
// gzip: application_2018-05-22-07.log.gz: invalid compressed data--format violated

logstash conf file contents below:

output {
path => "/var/mypath/%{app_name}_%{+yyyy-MM-dd-HH}.log.gz"
codec => line { format => "%{message}" }
gzip => true

(system) #2

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