Buffer data in Logstash if Elasticsearch is down

Then is there a chance for data loss if Elasticsearch is down and Logstash (1.5) already read the data from log file and is ready to send. How is this handled?