Failed to index audit event authentication success – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 6.8-6.8

Briefly, this error occurs when Elasticsearch is unable to index an audit event, specifically an authentication success event. This could be due to a variety of reasons such as insufficient permissions, a full disk, or a network issue. To resolve this, you could check the Elasticsearch logs for more detailed error messages. Ensure that the user has the correct permissions to write to the index. Also, check the disk space and network connectivity. If the index is read-only, you can change it back to read-write mode. Lastly, ensure the audit logging is properly configured.

This guide will help you check for common problems that cause the log ” failed to index audit event: [authentication_success] ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin, index.

Log Context

Log “failed to index audit event: [authentication_success]” classname is IndexAuditTrail.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

    public void authenticationSuccess(String requestId; String realm; User user; RestRequest request) {
        if (events.contains(AUTHENTICATION_SUCCESS)) {
            try {
                enqueue(message("authentication_success"; new Tuple(realm; realm); user; null; request); "authentication_success");
            } catch (final Exception e) {
                logger.warn("failed to index audit event: [authentication_success]"; e);
            }
        }
    }

    @Override

 

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?