Administration
Also available as:
PDF
loading table of contents...

Updating Existing Indexes to Work with Elasticsearch 5x

To update existing indexes to work with Elasticsearch 5x, perform the following:

  1. 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