Delete index (/log-nginx-%{bu_id}-2019.04.25)

I can't delete index (/log-nginx-%{bu_id}-2019.04.25)

DELETE /log-nginx-%{bu_id}-2019.04.25
{
  "error": {
    "root_cause": [
      {
        "type": "index_not_found_exception",
        "reason": "no such index",
        "resource.type": "index_or_alias",
        "resource.id": "log-nginx-%7Bbu_id}-2019.04.25",
        "index_uuid": "_na_",
        "index": "log-nginx-%7Bbu_id}-2019.04.25"
      }
    ],
    "type": "index_not_found_exception",
    "reason": "no such index",
    "resource.type": "index_or_alias",
    "resource.id": "log-nginx-%7Bbu_id}-2019.04.25",
    "index_uuid": "_na_",
    "index": "log-nginx-%7Bbu_id}-2019.04.25"
  },
  "status": 404
}

but the index exists, the elasticsearch version is 6.4.2

You can probably escape it somehow, but the following (if there are no other indices matching) could also work:

DELETE /log-nginx-*bu_id*-2019.04.25

1 Like

thanks。 I have solved it with URLEndcode。

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