How to access the system indices like .kibana* indices in the elasticsearch

In our project, we have a service that takes the backup of different system indices like .kibana* indices. When I access them using the rest API, I am getting the following deprecation warning

{"type": "deprecation.elasticsearch", "timestamp": "2022-02-17T10:04:04,446Z", "level": "DEPRECATION", "component": "o.e.d.c.m.IndexNameExpressionResolver", "cluster.name": "project-1", "node.name": "elasticsearch", "message": "this request accesses system indices: [.kibana_7.15.2_001], but in a future major version, direct access to system indices will be prevented by default", "key": "open_system_index_access", "cluster.uuid": "47qJK-ibTqS2U83rHQdWiQ", "node.id": "rtXy8ASwQAGKO7pFmWZY9Q" }

I am using kibana 7.15.2 and Elasticsearch 7.15.2 but when we shall upgrade Elasticsearch to version 8 i shall not be able to access the system indices using this API

"https://localhost:9200/_cat/indices/.kibana*?h=index"

Can anyone tell me how to solve this problem?

Why are you accessing these via the API?

I want to take the backup of these indices. First of all, I fetch the names of all such indices using the rest API and then I am using elasticdump in order to take the backup of each such index so that I can store them in a particular folder.

Perhaps use snapshot and restore?

100% use snapshot, it's what it's designed for.

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