Fixes LOGSTASH-1328
Merge pull request #678 from jippi/patch-1

Fixes LOGSTASH-1328