From 44eda0962e65640c854e20eb37f1572ff8ddc7d8 Mon Sep 17 00:00:00 2001 From: Chris Earle Date: Tue, 11 Jul 2017 18:04:38 -0400 Subject: [PATCH] [Monitoring] Use ctx.metadata.xpack not just ctx.metadata (elastic/x-pack-elasticsearch#1974) This tweaks a recent fix so that it uses the right metadata variable. Original commit: elastic/x-pack-elasticsearch@af9d9b0e412b34431931e0c4e740bcdad579bb61 --- .../monitoring/watches/elasticsearch_cluster_status.json | 2 +- .../monitoring/watches/elasticsearch_version_mismatch.json | 2 +- .../resources/monitoring/watches/kibana_version_mismatch.json | 2 +- .../resources/monitoring/watches/logstash_version_mismatch.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin/src/main/resources/monitoring/watches/elasticsearch_cluster_status.json b/plugin/src/main/resources/monitoring/watches/elasticsearch_cluster_status.json index 128de820f6f..73a595509b4 100644 --- a/plugin/src/main/resources/monitoring/watches/elasticsearch_cluster_status.json +++ b/plugin/src/main/resources/monitoring/watches/elasticsearch_cluster_status.json @@ -43,7 +43,7 @@ "filter": [ { "term": { - "cluster_uuid": "{{ctx.metadata.cluster_uuid}}" + "cluster_uuid": "{{ctx.metadata.xpack.cluster_uuid}}" } }, { diff --git a/plugin/src/main/resources/monitoring/watches/elasticsearch_version_mismatch.json b/plugin/src/main/resources/monitoring/watches/elasticsearch_version_mismatch.json index 364b776f382..fd3d6cc0741 100644 --- a/plugin/src/main/resources/monitoring/watches/elasticsearch_version_mismatch.json +++ b/plugin/src/main/resources/monitoring/watches/elasticsearch_version_mismatch.json @@ -36,7 +36,7 @@ "filter": [ { "term": { - "_id": "{{ctx.metadata.cluster_uuid}}" + "_id": "{{ctx.metadata.xpack.cluster_uuid}}" } }, { diff --git a/plugin/src/main/resources/monitoring/watches/kibana_version_mismatch.json b/plugin/src/main/resources/monitoring/watches/kibana_version_mismatch.json index 89a06496465..b208963c138 100644 --- a/plugin/src/main/resources/monitoring/watches/kibana_version_mismatch.json +++ b/plugin/src/main/resources/monitoring/watches/kibana_version_mismatch.json @@ -33,7 +33,7 @@ "filter": [ { "term": { - "cluster_uuid": "{{ctx.metadata.cluster_uuid}}" + "cluster_uuid": "{{ctx.metadata.xpack.cluster_uuid}}" } }, { diff --git a/plugin/src/main/resources/monitoring/watches/logstash_version_mismatch.json b/plugin/src/main/resources/monitoring/watches/logstash_version_mismatch.json index 4f2d3562a32..fd5e9d23c26 100644 --- a/plugin/src/main/resources/monitoring/watches/logstash_version_mismatch.json +++ b/plugin/src/main/resources/monitoring/watches/logstash_version_mismatch.json @@ -33,7 +33,7 @@ "filter": [ { "term": { - "cluster_uuid": "{{ctx.metadata.cluster_uuid}}" + "cluster_uuid": "{{ctx.metadata.xpack.cluster_uuid}}" } }, {