Field name attempted to shadow a time series metric – How to solve this Elasticsearch exception

Opster Team

August-23, Version: 8-8.9

Briefly, this error occurs when a field in Elasticsearch tries to override a time_series_metric, which is not allowed. This can happen when you’re trying to create a new field with the same name as an existing time_series_metric. To resolve this issue, you can either rename the new field you’re trying to create or delete the existing time_series_metric if it’s no longer needed. Alternatively, you can create a new index for the new field if it’s necessary to keep the same name.

This guide will help you check for common problems that cause the log ” Field [” + name + “] attempted to shadow a time_series_metric ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: index.

Log Context

Log “Field [” + name + “] attempted to shadow a time_series_metric” class name is MappingLookup.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 }
 if (shadowed.isDimension()) {
 throw new MapperParsingException("Field [" + name + "] attempted to shadow a time_series_dimension");
 }
 if (shadowed.getMetricType() != null) {
 throw new MapperParsingException("Field [" + name + "] attempted to shadow a time_series_metric");
 }
 }
}

 

 [ratemypost]

Opster
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.