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 d7b362ff8f7..128de820f6f 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": "${monitoring.watch.cluster_uuid}" + "cluster_uuid": "{{ctx.metadata.cluster_uuid}}" } }, { @@ -85,7 +85,7 @@ "bool": { "filter": { "term": { - "_id": "${monitoring.watch.unique_id}" + "_id": "{{ctx.watch_id}}" } } } 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 0991999476c..364b776f382 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": "${monitoring.watch.cluster_uuid}" + "_id": "{{ctx.metadata.cluster_uuid}}" } }, { @@ -81,7 +81,7 @@ "bool": { "filter": { "term": { - "_id": "${monitoring.watch.unique_id}" + "_id": "{{ctx.watch_id}}" } } } 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 4f0d036f538..89a06496465 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": "${monitoring.watch.cluster_uuid}" + "cluster_uuid": "{{ctx.metadata.cluster_uuid}}" } }, { @@ -108,7 +108,7 @@ "bool": { "filter": { "term": { - "_id": "${monitoring.watch.unique_id}" + "_id": "{{ctx.watch_id}}" } } } 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 cd1007339b0..4f2d3562a32 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": "${monitoring.watch.cluster_uuid}" + "cluster_uuid": "{{ctx.metadata.cluster_uuid}}" } }, { @@ -108,7 +108,7 @@ "bool": { "filter": { "term": { - "_id": "${monitoring.watch.unique_id}" + "_id": "{{ctx.watch_id}}" } } }