Elasticsearch : How to disable automatic date detection globally for all indices

Viewed 1436
1 Answers

I've resolved it by changing a global Elasticsearch template (check, if you allready have there any important setting in the global template, that you would like to keep, then you would also need to copy paste them here in json):

curl -X PUT "$HOSTNAME:9200/_template/global?pretty" -H 'Content-Type: application/json' -d'
{
    "index_patterns" : ["logstash-*"], ####here your index pattern for the setting####
    "order" : 0,
    "mappings": {
      "doc": {
        "date_detection": false
      }
    } 
}'
Related