This documentation contains work-in-progress information for future Elastic Stack and Cloud releases. Use the version selector to view supported release docs. It also contains some Elastic Cloud serverless information. Check out our serverless docs for more details.
Get Watcher index settings
editGet Watcher index settings
editThis 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.