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 {
file{
path => "/var/mypath/%{app_name}_%{+yyyy-MM-dd-HH}.log.gz"
codec => line { format => "%{message}" }
gzip => true
}
}