Elasticsearch can't delete indices with special caracters

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.

What happens if you try DELETE *metadata*beat*2018.05.19 ?

so it was possible to do it by that way?)
I do what I want. Thanks you!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.