Hi Experts,
I am using ES 1.7.1, my requirement is to delete document which are 10 days old . So for this I am using ttl mapping something like
{
"template_main":{
"template" : "abc*",
"settings" : {
"index.query.default_field" : "message",
"index":{
"analysis":{
"analyzer":{
"analyzer_keyword":{
"type": "custom",
"tokenizer":"keyword",
"filter":"lowercase"
}
}
}
}
},
"mappings" : {
"_default_" : {
"_ttl": {"enabled": true,"default": "10d"},
"_all" : {"enabled" : false},
"properties" : {
"rt": {"type": "date"},
"spt" :{"type": "integer","doc_values" : true}
}
}
}
}
}
Now when I am creating index based on rt(receive time) using LS, documents are not getting deleted which are older than 10 days . I cheeked my data in the log file it is old. Please suggest what I am missing .