How to change security index's replica shard count?

Hi;
I am trying to increase replica count of security index by using superuser ( elastic) like below

curl -X PUT 'http://**************:9212/.security-7/_settings'
-H 'Authorization: Basic ***************'
-H 'Content-Type: application/json'
-d '{
"index" : {
"number_of_replicas" : 4
}
}'

{"error":{"root_cause":[{"type":"security_exception","reason":"action [indices:admin/settings/update] is unauthorized for
user [elastic] with effective roles [superuser] on restricted indices [.security-7], this action is granted by the index privileges [manage,all]"}],
"type":"security_exception","reason":"action [indices:admin/settings/update] is unauthorized for user [elastic] with effective roles [superuser] on restricted indices
[.security-7], this action is granted by the index privileges [manage,all]"},"status":403}

Is there any method in order to perform this operation?

Thanks;
Bülent

I have found the reason at the following links

In 8.0, we’ve made several changes to protect system indices from direct access. To access a system index, you must now have the allow_restricted_indices permission set to true.

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