Gzip error when reading file outut

I have a file output of:

file {
    path => "/logs/%{+YYYY}/%{+MM}/%{+dd}/%{backend}"
    codec => line { format => "%{message}"}
    gzip => true
  }

That writes logs to a gzipped file. However, when I attempt to read the file with:

 cat webapps_out-of-service  | gunzip

I get:

gzip: stdin: not in gzip format

Are there different gzip formats or something, otherwise how can I read the file created by Logstash?

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