Update needed for Elasticsearch 1.x

Elasticsearch output json has been updated so this change must be done