I try to execute this from console DELETE /%{[@metadata][beat]}-2018.05.19
and get error:
{
"error": {
"root_cause": [
{
"type": "index_not_found_exception",
"reason": "no such index",
"resource.type": "index_or_alias",
"resource.id": "%7B[@metadata][beat]}-2018.05.19",
"index_uuid": "_na_",
"index": "%7B[@metadata][beat]}-2018.05.19"
}
],
"type": "index_not_found_exception",
"reason": "no such index",
"resource.type": "index_or_alias",
"resource.id": "%7B[@metadata][beat]}-2018.05.19",
"index_uuid": "_na_",
"index": "%7B[@metadata][beat]}-2018.05.19"
},
"status": 404
}
But %{[@metadata][beat]}-2018.05.19
is located in elasticsearch. When I get all indices by GET /_cat/indices?v
I see %{[@metadata][beat]}*
indices there.