Elasticsearch can't delete indices with special caracters


(Vladimir Fomin) #1

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.


(Christian Dahlqvist) #2

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


(Vladimir Fomin) #3

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


(system) #4

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