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");
 }
 }
}

 

How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?