How to unzip s3 log files in Logstash


I have to load s3 log files into an ES. So I read log files from S3 through LogStash. But the problem is, the log files are in zip file format. How to unzip these log files in LogStash?


The S3 input handles gzipped files. Filenames ending in .gz are unzipped and read.
See docs

Thanks man. so we dont need to do anything to extract these files right?

It is automatic as long as the filename ends with .gz

Thanks guyboertje.

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