Field name attempted to shadow a time series dimension – 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_dimension, which is a reserved field for time series data. This is not allowed as it can cause data inconsistency. To resolve this issue, you can either rename the field that’s causing the conflict or restructure your data to avoid the need for shadowing. Also, ensure that your mappings are correctly defined to prevent such conflicts.

This guide will help you check for common problems that cause the log ” Field [” + name + “] attempted to shadow a time_series_dimension ” 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_dimension” class name is MappingLookup.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 MappedFieldType shadowed = indexTimeLookup.get(name);
 if (shadowed == null) {
 return;
 }
 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?