Download raw file in kibana 4

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.