Unknown rounding id id – How to solve this Elasticsearch exception

Opster Team

August-23, Version: 6.8-8.9

Briefly, this error occurs when Elasticsearch encounters an unrecognized rounding ID during date histogram aggregation. This could be due to a typo or an unsupported rounding value. To resolve this issue, ensure that the rounding ID used is one of the supported values such as ‘year’, ‘quarter’, ‘month’, ‘week’, ‘day’, ‘hour’, ‘minute’, ‘second’. Also, check for any typographical errors in the rounding ID. If the error persists, consider updating your Elasticsearch version as some rounding IDs are only supported in newer versions.

This guide will help you check for common problems that cause the log ” unknown rounding id [” + id + “] ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: .

Log Context

Log “unknown rounding id [” + id + “]” class name is Rounding.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 byte id = in.readByte();
 return switch (id) {
 case TimeUnitRounding.ID -> new TimeUnitRounding(in);
 case TimeIntervalRounding.ID -> new TimeIntervalRounding(in);
 case OffsetRounding.ID -> new OffsetRounding(in);
 default -> throw new ElasticsearchException("unknown rounding id [" + id + "]");
 }  /**
 * Implementation of {@link Prepared} using pre-calculated "round down" points.


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?