From d535e15b72bd97a76b2e8988040cc3533688d4a4 Mon Sep 17 00:00:00 2001 From: bellengao Date: Thu, 3 Sep 2020 04:45:27 +0800 Subject: [PATCH] Correct the query dsl for watching elasticsearch version (#58321) The term query should be looking at the cluster_uuid field in elasticsearch_version_mismatch.json. --- .../monitoring/watches/elasticsearch_version_mismatch.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugin/monitoring/src/main/resources/monitoring/watches/elasticsearch_version_mismatch.json b/x-pack/plugin/monitoring/src/main/resources/monitoring/watches/elasticsearch_version_mismatch.json index 05fa83966237b..e3f3ed9466933 100644 --- a/x-pack/plugin/monitoring/src/main/resources/monitoring/watches/elasticsearch_version_mismatch.json +++ b/x-pack/plugin/monitoring/src/main/resources/monitoring/watches/elasticsearch_version_mismatch.json @@ -36,7 +36,7 @@ "filter": [ { "term": { - "_id": "{{ctx.metadata.xpack.cluster_uuid}}" + "cluster_uuid": "{{ctx.metadata.xpack.cluster_uuid}}" } }, {