Hi Gordon,
Thanks for taking a look. Sorry if I wasn't clear -- ILM works as expected for a period of time, writing to ${INDEX}-000001
which has the write alias configured. Then, after a while, ${INDEX}-000001
disappears (deleted, not sure?) and everything writes to ${INDEX}
w/o ILM setup. Only our a test cluster (running 7.X) have I seen successful rollover (-002, etc). The current cluster is running 6.7.1 and is the one having issues.
The policy:
{
"policy": {
"phases": {
"hot": {
"actions": {
"set_priority": {
"priority": 80
},
"rollover": {
"max_size": "50GB"
}
}
},
"warm": {
"actions": {
"set_priority": {
"priority": 50
},
"allocate": {
"number_of_replicas": 1
},
"readonly": {},
"shrink": {
"number_of_shards": 1
},
"forcemerge": {
"max_num_segments": 1
}
}
},
"delete": {
"min_age": "7d",
"actions": {
"delete": {}
}
}
}
}
}
Initial settings on logs-6.7.1-000001
"settings": {
"index": {
"lifecycle": {
"name": "logs-6.7.1",
"rollover_alias": "logs-6.7.1"
},
"refresh_interval": "30s",
"number_of_shards": "2",
"provided_name": "logs-6.7.1-000001",
"creation_date": "1557876101497",
"priority": "80",
"number_of_replicas": "1",
"uuid": "38vM9NZhRaiSVmdGVtXBtA",
"version": {
"created": "6070199"
}
}
},
Settings after "something weird" happens, on the new index logs-6.7.1
"settings": {
"index": {
"refresh_interval": "30s",
"number_of_shards": "2",
"provided_name": "logs-6.7.1",
"creation_date": "1558350177789",
"number_of_replicas": "1",
"uuid": "P-aH9wSUS-6EuJqDyoYAhQ",
"version": {
"created": "6070199"
}
}
},
Logstash output
elasticsearch {
hosts => ["${ELASTICSEARCH_HOST:elasticsearch}:${ELASTICSEARCH_PORT:9200}"]
user => "${ELASTICSEARCH_USERNAME:}"
password => "${ELASTICSEARCH_PASSWORD:}"
timeout => 90
ilm_enabled => "true"
ilm_rollover_alias => "logs-${LOGSTASH_VERSION:6.X}"
ilm_pattern => "000001"
ilm_policy => "logs-${LOGSTASH_VERSION:6.X}"
manage_template => false
document_type => "_doc"
}
Best, Justin