Creating processor tag on field but authentication is not currently enabled on this cluster – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 7.7-7.15

Briefly, this error occurs when you’re trying to create a processor tag on a field in Elasticsearch, but the authentication feature is not enabled on your cluster. To resolve this issue, you can enable authentication by setting the ‘xpack.security.enabled’ to true in the elasticsearch.yml configuration file. Alternatively, you can disable the processor tag if it’s not necessary for your use case. Lastly, ensure that your Elasticsearch version supports authentication as some older versions may not have this feature.

This guide will help you check for common problems that cause the log ” Creating processor [{}] (tag [{}]) on field [{}] but authentication is not currently enabled on this cluster ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: cluster, plugin.

Log Context

Log “Creating processor [{}] (tag [{}]) on field [{}] but authentication is not currently enabled on this cluster ” classname is SetSecurityUserProcessor.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                                    String field; Set properties) {
        super(tag; description);
        this.securityContext = securityContext;
        this.licenseState = Objects.requireNonNull(licenseState; "license state cannot be null");
        if (licenseState.isSecurityEnabled() == false) {
            logger.warn("Creating processor [{}] (tag [{}]) on field [{}] but authentication is not currently enabled on this cluster " +
                " - this processor is likely to fail at runtime if it is used"; TYPE; tag; field);
        } else if (this.securityContext == null) {
            throw new IllegalArgumentException("Authentication is allowed on this cluster state; but there is no security context");
        }
        this.field = field;

 

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?