This is the output before providing proxy in elasticsearch.yml
"input": {
"http": {
"request": {
"scheme": "http",
"host": "3.3.47.215",
"port": 9200,
"method": "get",
"path": "/_cluster/health",
"params": {},
"headers": {},
"auth": {
"basic": {
"username": "akhil",
"password": "akhil@123"
}
}
}
}
},
"condition": {
"compare": {
"ctx.payload.status": {
"eq": "red"
}
}
},
"messages": [],
"result": {
"execution_time": "2017-04-12T04:27:26.904Z",
"execution_duration": 31,
"input": {
"type": "http",
"status": "success",
"payload": {
"cluster_name": "spot-qa",
"status": "red",
"timed_out": false,
"number_of_nodes": 2,
"number_of_data_nodes": 2,
"active_primary_shards": 86,
"active_shards": 153,
"relocating_shards": 0,
"initializing_shards": 4,
"unassigned_shards": 15,
"delayed_unassigned_shards": 0,
"number_of_pending_tasks": 0,
"number_of_in_flight_fetch": 0,
"task_max_waiting_in_queue_millis": 0,
"active_shards_percent_as_number": 88.95348837209302
},
"http": {
"request": {
"host": "3.3.87.248",
"port": 9200,
"scheme": "http",
"method": "get",
"path": "/_cluster/health",
"auth": {
"username": "spotadmin",
"password": "sp0t@dm1n"
}
},
"status_code": 200
}
},
"condition": {
"type": "compare",
"status": "success",
"met": true,
"compare": {
"resolved_values": {
"ctx.payload.status": "red"
}
}
},
"actions": [
{
"id": "notify-slack",
"type": "slack",
"status": "failure",
"slack": {
"account": "monitoring",
"sent_messages": [
{
"status": "failure",
"reason": "UnknownHostException[hooks.slack.com]",
"to": "#opt-es",
"message": {
"from": "Watcher",
"text": "cluster_health alert: Someone needs to look at the SPOT-Stage cluster. It appears to be in a RED state. (facepalm)"
}
},
{
"status": "failure",
"reason": "UnknownHostException[hooks.slack.com]",
"to": "@akhilesh_appana",
"message": {
"from": "Watcher",
"text": "cluster_health alert: Someone needs to look at the SPOT-Stage cluster. It appears to be in a RED state. (facepalm)"
}
}
]
}
}
]
}