How to compress your file output

Hi i'm using the file output plugin to write logs to file. I'm having a problem getting the compression plugin.

Please show what you've tried (i.e. your configuration), the results you get, and what you expected to get.

@magnusbaeck, Thanks man. I managed to solve it using gzip => true.