How to unzip s3 log files in Logstash

(Clash Of Clanss) #1


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?


(Guy Boertje) #2

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

(Clash Of Clanss) #3

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

(Guy Boertje) #4

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

(Clash Of Clanss) #5

Thanks guyboertje.

(system) #6

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