This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This example uses scripting in the watch (https://www.elastic.co/guide/en/watcher/2.3/scripts-templates.html#scripts). | |
# Requires inline scripting to be enabled (https://www.elastic.co/guide/en/elasticsearch/reference/2.3/modules-scripting.html#enable-dynamic-scripting) | |
# eg. script.inline: true | |
# Uses chained input feature (https://www.elastic.co/guide/en/watcher/2.3/input.html#input-chain) | |
# In my test case, I am running all 3 nodes on the same machine, which is why the http requests are going to | |
# localhost:9200, localhost:9201 and localhost:9202. You will have to customize the watch below | |
# to change localhost:9200 to the host/port of your first node, localhost:9201 to the host/port of your second node, and so on ... |