I just want to know if there is a way in kibana 4 to download the raw file from discover tab?
You mean the original log file that was fed to Logstash? Or just the data shown in the discover tab in e.g. CSV format? In the latter case see below.