From 4e241c6ea67dc27cc67942ff52d5c119cbdf182c Mon Sep 17 00:00:00 2001 From: Shaunak Kashyap Date: Tue, 19 Mar 2019 09:01:05 -0700 Subject: [PATCH 1/2] Update schema version in monitoring index name --- metricbeat/helper/elastic/elastic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metricbeat/helper/elastic/elastic.go b/metricbeat/helper/elastic/elastic.go index 207768a2491..e7cc0827ab4 100644 --- a/metricbeat/helper/elastic/elastic.go +++ b/metricbeat/helper/elastic/elastic.go @@ -77,7 +77,7 @@ func (p Product) String() string { // MakeXPackMonitoringIndexName method returns the name of the monitoring index for // a given product { elasticsearch, kibana, logstash, beats } func MakeXPackMonitoringIndexName(product Product) string { - const version = "6" + const version = "7" return fmt.Sprintf(".monitoring-%v-%v-mb", product.xPackMonitoringIndexString(), version) } From 118b15816d7a57a03d7464c55bb9d3b3b247573f Mon Sep 17 00:00:00 2001 From: Shaunak Kashyap Date: Tue, 19 Mar 2019 09:36:43 -0700 Subject: [PATCH 2/2] Update tests --- metricbeat/helper/elastic/elastic_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/metricbeat/helper/elastic/elastic_test.go b/metricbeat/helper/elastic/elastic_test.go index 83c8830365e..71cf1d6023f 100644 --- a/metricbeat/helper/elastic/elastic_test.go +++ b/metricbeat/helper/elastic/elastic_test.go @@ -35,22 +35,22 @@ func TestMakeXPackMonitoringIndexName(t *testing.T) { { "Elasticsearch monitoring index", Elasticsearch, - ".monitoring-es-6-mb", + ".monitoring-es-7-mb", }, { "Kibana monitoring index", Kibana, - ".monitoring-kibana-6-mb", + ".monitoring-kibana-7-mb", }, { "Logstash monitoring index", Logstash, - ".monitoring-logstash-6-mb", + ".monitoring-logstash-7-mb", }, { "Beats monitoring index", Beats, - ".monitoring-beats-6-mb", + ".monitoring-beats-7-mb", }, }