this should fix logstash #1738
Closes #1738