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

Before you dig into reading this guide, have you tried asking OpsGPT what this log means? You’ll receive a customized analysis of your log.

Try OpsGPT now for step-by-step guidance and tailored insights into your Elasticsearch operation.

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.

For a complete solution to your to your search operation, try for free AutoOps for Elasticsearch & OpenSearch . With AutoOps and Opster’s proactive support, you don’t have to worry about your search operation – we take charge of it. Get improved performance & stability with less hardware.

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?