According to the OpenSearch configuration docs I can get a full list of the cluster settings by sending a
GET _cluster/settings?include_defaults=true
request through OpenSearch Dashboards or a curl equivalent.
The response object is rather large and I want to narrow it down a bit.
Here is the first 30 lines of it:
{
"persistent" : {
"plugins" : {
"index_state_management" : {
"metadata_migration" : {
"status" : "1"
},
"template_migration" : {
"control" : "-1"
}
}
}
},
"transient" : { },
"defaults" : {
"cluster" : {
"max_voting_config_exclusions" : "10",
"metadata" : {
"perf_analyzer" : {
"config" : {
"overrides" : ""
},
"pa_node_stats_setting" : "1",
"state" : "0"
}
},
"auto_shrink_voting_configuration" : "true",
"election" : {
"duration" : "500ms",
"initial_timeout" : "100ms"
How could I get the response to only return the value of some particular setting (e.g. persistent.plugins.index_state_management.template_migration.control) or a some sub-object of properties/settings (e.g. defaults.cluster.metadata)?
The search API has such a nice query DSL for searching through indexed documents, but in this case, I just want to narrow down the response, be it the settings object as described above or more generally, any object I could possibly get in the response.
I couldn’t find the answer anywhere (these forums and the web as a whole), so I sincerely hope this is not a trivial hiccup described at the very top of some documentation I’ve missed.
PS: I know the response can be traversed and filtered programmatically. But using Dashboards’ Dev Tools for play testing is so practical, it would be really handy to narrow the response down to just the bits you’re interested in the same step.
Though I could accept the next best alternative, whichever you might recommend.