Template Index Routing


#1

Is it possible to define the index.routing.allocation.require.box_type in the graylog-internal template? Changes to the template are not holding so each new indice has to be updated manually.

Referenced from the the Elasticsearch hot warm architecture for ES version 2.x.


(Jochen) #2

This should be possible with a custom index template: http://docs.graylog.org/en/2.2/pages/configuration/elasticsearch.html#custom-index-mappings


#3

Thanks - based on that link, would this be the correct graylog-custom-mapping.json?

{
  "template": "graylog_*",
  "mappings" : {
    "settings" : {
      "properties" : {
        "index": {
          "routing": {
            "allocation": {
              "require": {
                "box_type": "hot"
              }
            }
          }
        }
      }
    }
  }
}

(Jochen) #4

No. Index settings must not be listed within the mappings dictionary.

See https://www.elastic.co/guide/en/elasticsearch/reference/2.4/indices-templates.html for details.


(system) #5

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.