Updating Existing Indexes to Work with Elasticsearch 2.x
To update existing indexes to work with Elasticsearch 2.x, perform the following
Update Elasticsearch mappings with the new field for each sensor.
curl -XPUT "http://${ELASTICSEARCH_HOST}:9200/${SENSOR}_index*/_mapping/${SENSOR}_doc" -d ' { "properties" : { "alert" : { "type" : "nested" } } } ' rm ${SENSOR}.template