How to parse .gz (compressed file) using logstash

No you can't. You will have to do that manually.

Here: magnusbaeck's reply on Can Logstash process archived data in the .tar.gz format?