{
"trigger": {
"schedule": {
"interval": "30m"
}
},
"input" : {
"http" : {
"request" : {
"host" : "localhost",
"port" : 9200,
"path" : "_cluster/health"
}
}
},
"actions": {
"my-logging-action": {
"logging": {
"text": "There are {{ctx.payload.active_shards}} shards."
}
}
}
}
Created
April 8, 2020 06:12
-
-
Save renshuki/98885ccac0bed0515f735eb2c81b1921 to your computer and use it in GitHub Desktop.
Elasticsearch / Watcher - Watcher to retrieve number of shards from _cluster/health
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment