3838 *
3939 * This template registry manages templates for two purposes:
4040 * 1) Internal Monitoring Collection (.monitoring-{product}-7-*)
41- * 2) Stack Monitoring templates for bridging ECS format data to legacy monitoring data (.monitoring-{product}-9 -*)
41+ * 2) Stack Monitoring templates for bridging ECS format data to legacy monitoring data (.monitoring-{product}-8 -*)
4242 */
4343public class MonitoringTemplateRegistry extends IndexTemplateRegistry {
4444 private static final Logger logger = LogManager .getLogger (MonitoringTemplateRegistry .class );
@@ -73,13 +73,13 @@ public class MonitoringTemplateRegistry extends IndexTemplateRegistry {
7373 private static final String MONITORING_POLICY_RETENTION_REASON_VARIABLE = "xpack.stack.monitoring.history.duration.reason" ;
7474
7575 /**
76- * The stack monitoring template registry version. This is the version id for templates used by Metricbeat in versions > 8.x. Metricbeat
76+ * The stack monitoring template registry version. This is the version id for templates used by Metricbeat in version 8.x. Metricbeat
7777 * writes monitoring data in ECS format as of 8.0. These templates define the ECS schema as well as alias fields for the old monitoring
7878 * mappings that point to the corresponding ECS fields.
7979 */
80- public static final int STACK_MONITORING_REGISTRY_VERSION = 9_00_00_99 + 1 ;
80+ public static final int STACK_MONITORING_REGISTRY_VERSION = 8_00_00_99 + 21 ;
8181 private static final String STACK_MONITORING_REGISTRY_VERSION_VARIABLE = "xpack.stack.monitoring.template.release.version" ;
82- private static final String STACK_TEMPLATE_VERSION = "9 " ;
82+ private static final String STACK_TEMPLATE_VERSION = "8 " ;
8383 private static final String STACK_TEMPLATE_VERSION_VARIABLE = "xpack.stack.monitoring.template.version" ;
8484 private static final Map <String , String > STACK_TEMPLATE_VARIABLES = Map .of (
8585 STACK_TEMPLATE_VERSION_VARIABLE ,
@@ -159,7 +159,7 @@ public class MonitoringTemplateRegistry extends IndexTemplateRegistry {
159159 );
160160
161161 //////////////////////////////////////////////////////////
162- // Beats metricbeat template (for matching ".monitoring-beats-${version} -*" indices)
162+ // Beats metricbeat template (for matching ".monitoring-beats-8 -*" indices)
163163 //////////////////////////////////////////////////////////
164164 public static final String BEATS_STACK_INDEX_TEMPLATE_NAME = ".monitoring-beats-mb" ;
165165 public static final IndexTemplateConfig BEATS_STACK_INDEX_TEMPLATE = new IndexTemplateConfig (
@@ -171,7 +171,7 @@ public class MonitoringTemplateRegistry extends IndexTemplateRegistry {
171171 );
172172
173173 //////////////////////////////////////////////////////////
174- // ES metricbeat template (for matching ".monitoring-es-${version} -*" indices)
174+ // ES metricbeat template (for matching ".monitoring-es-8 -*" indices)
175175 //////////////////////////////////////////////////////////
176176 public static final String ES_STACK_INDEX_TEMPLATE_NAME = ".monitoring-es-mb" ;
177177 public static final IndexTemplateConfig ES_STACK_INDEX_TEMPLATE = new IndexTemplateConfig (
@@ -183,7 +183,7 @@ public class MonitoringTemplateRegistry extends IndexTemplateRegistry {
183183 );
184184
185185 //////////////////////////////////////////////////////////
186- // Kibana metricbeat template (for matching ".monitoring-kibana-${version} -*" indices)
186+ // Kibana metricbeat template (for matching ".monitoring-kibana-8 -*" indices)
187187 //////////////////////////////////////////////////////////
188188 public static final String KIBANA_STACK_INDEX_TEMPLATE_NAME = ".monitoring-kibana-mb" ;
189189 public static final IndexTemplateConfig KIBANA_STACK_INDEX_TEMPLATE = new IndexTemplateConfig (
@@ -195,7 +195,7 @@ public class MonitoringTemplateRegistry extends IndexTemplateRegistry {
195195 );
196196
197197 //////////////////////////////////////////////////////////
198- // Logstash metricbeat template (for matching ".monitoring-logstash-${version} -*" indices)
198+ // Logstash metricbeat template (for matching ".monitoring-logstash-8 -*" indices)
199199 //////////////////////////////////////////////////////////
200200 public static final String LOGSTASH_STACK_INDEX_TEMPLATE_NAME = ".monitoring-logstash-mb" ;
201201 public static final IndexTemplateConfig LOGSTASH_STACK_INDEX_TEMPLATE = new IndexTemplateConfig (
0 commit comments