Skip to content

Instantly share code, notes, and snippets.

View ichandan16's full-sized avatar
🏠
Working from home

Chandan Patra ichandan16

🏠
Working from home
  • CloudArchitect
  • Bengaluru
View GitHub Profile
# 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 ...