0
我設置TTL模板是這樣的:TTL在Elasticsearch不工作
curl -XPUT 'localhost:9200/_template/keyword' -d '
{
"template": "keyword*",
"mappings": {
"fluentd": {
"_source": {
"compress": true
},
"_ttl": {
"enabled": true,
"default": "120d"
},
"properties": {
....
}
}
}
}'
當我檢查映射我得到這個:
"keyword-2016.02.16": {
"mappings": {
"fluentd": {
"_all": {
"enabled": false
},
"_ttl": {
"enabled": true,
"default": 10368000000
},
"_source": {
"compress": true
},
"properties": {
.....
}
}
}
但TTL到期後,指數不會被刪除。你知不知道可能是什麼問題?
此外,在Kibana我得到這個: