Get Watcher index settings
This API allows a user to retrieve the user-configurable settings for the Watcher internal index (.watches). Only a subset of the index settings—those that are user-configurable—will be shown. This includes:
-
index.auto_expand_replicas -
index.number_of_replicas
An example of retrieving the Watcher settings:
resp = client.perform_request(
"GET",
"/_watcher/settings",
)
print(resp) response = client.watcher.get_settings puts response
const response = await client.transport.request({
method: "GET",
path: "/_watcher/settings",
});
console.log(response); GET /_watcher/settings
The configurable settings can be modified using the Update Watcher index settings API.
© 2023-2025 Elasticsearch
As of September 2024, Elasticsearch is available under a choice of three licenses: the Server Side Public License (SSPL), the Elastic License, or the AGPLv3 (OSI approved).
Elasticsearch and the Elasticsearch logo are trademarks of Elasticsearch B.V., registered in the U.S. and in other countries.
https://www.elastic.co/guide/en/elasticsearch/reference/8.17/watcher-api-get-settings.html