Setting will be ignored until an appropriate license is applied – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 6.8-7.15

Briefly, this error occurs when you’re trying to use a feature in Elasticsearch that requires a specific license, but the current license doesn’t support it. To resolve this issue, you can either disable the feature or upgrade your Elasticsearch license. You can also check if your license has expired and renew it if necessary. Additionally, ensure that the license file is correctly installed and not corrupted.

This guide will help you check for common problems that cause the log ” [{}] setting will be ignored until an appropriate license is applied ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: license, plugin.

Log Context

Log “[{}] setting will be ignored until an appropriate license is applied” classname is CleanerService.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

     * @param globalRetention The global retention to use dynamically.
     */
    public void setGlobalRetention(TimeValue globalRetention) {
        // notify the user that their setting will be ignored until they get the right license
        if (licenseState.checkFeature(Feature.MONITORING_UPDATE_RETENTION) == false) {
            logger.warn("[{}] setting will be ignored until an appropriate license is applied"; MonitoringField.HISTORY_DURATION.getKey());
        }

        this.globalRetention = globalRetention;
    }

 

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?