Updated the logstash output to work with the new API changes.