From 61649a87dc10026376be4073558f790c16b57027 Mon Sep 17 00:00:00 2001 From: Shaunak Kashyap Date: Tue, 12 Feb 2019 16:21:54 -0800 Subject: [PATCH] Remove _type term filters from cluster alert watches (#38819) --- .../watches/elasticsearch_cluster_status.json | 15 ++------------- .../watches/elasticsearch_version_mismatch.json | 15 ++------------- .../watches/kibana_version_mismatch.json | 15 ++------------- .../watches/logstash_version_mismatch.json | 15 ++------------- 4 files changed, 8 insertions(+), 52 deletions(-) diff --git a/x-pack/plugin/monitoring/src/main/resources/monitoring/watches/elasticsearch_cluster_status.json b/x-pack/plugin/monitoring/src/main/resources/monitoring/watches/elasticsearch_cluster_status.json index fca6171b62329..5d6111ab8c766 100644 --- a/x-pack/plugin/monitoring/src/main/resources/monitoring/watches/elasticsearch_cluster_status.json +++ b/x-pack/plugin/monitoring/src/main/resources/monitoring/watches/elasticsearch_cluster_status.json @@ -47,19 +47,8 @@ } }, { - "bool": { - "should": [ - { - "term": { - "_type": "cluster_state" - } - }, - { - "term": { - "type": "cluster_stats" - } - } - ] + "term": { + "type": "cluster_stats" } }, { 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 61d77d2b602fb..45ae5277bcd53 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 @@ -40,19 +40,8 @@ } }, { - "bool": { - "should": [ - { - "term": { - "_type": "cluster_stats" - } - }, - { - "term": { - "type": "cluster_stats" - } - } - ] + "term": { + "type": "cluster_stats" } }, { diff --git a/x-pack/plugin/monitoring/src/main/resources/monitoring/watches/kibana_version_mismatch.json b/x-pack/plugin/monitoring/src/main/resources/monitoring/watches/kibana_version_mismatch.json index 95de1a1a6383e..c03363854a3ef 100644 --- a/x-pack/plugin/monitoring/src/main/resources/monitoring/watches/kibana_version_mismatch.json +++ b/x-pack/plugin/monitoring/src/main/resources/monitoring/watches/kibana_version_mismatch.json @@ -44,19 +44,8 @@ } }, { - "bool": { - "should": [ - { - "term": { - "_type": "kibana_stats" - } - }, - { - "term": { - "type": "kibana_stats" - } - } - ] + "term": { + "type": "kibana_stats" } } ] diff --git a/x-pack/plugin/monitoring/src/main/resources/monitoring/watches/logstash_version_mismatch.json b/x-pack/plugin/monitoring/src/main/resources/monitoring/watches/logstash_version_mismatch.json index 7448000fa8516..0afce0bf74e2f 100644 --- a/x-pack/plugin/monitoring/src/main/resources/monitoring/watches/logstash_version_mismatch.json +++ b/x-pack/plugin/monitoring/src/main/resources/monitoring/watches/logstash_version_mismatch.json @@ -44,19 +44,8 @@ } }, { - "bool": { - "should": [ - { - "term": { - "_type": "logstash_stats" - } - }, - { - "term": { - "type": "logstash_stats" - } - } - ] + "term": { + "type": "logstash_stats" } } ]