How To Solve Issues Related to Log – Failed to put audit trail template

How To Solve Issues Related to Log – Failed to put audit trail template

Updated: Jan-20

Elasticsearch Version: 1.7-8.0


Before you begin reading this guide try our beta Elasticsearch Health Check-Up it analyses JSON’s to provide personalized recommendations that can improve your clusters performance.

To troubleshoot log “Failed to put audit trail template” it’s important to understand a few problems related to Elasticsearch concepts index, plugin, template. See bellow important tips and explanations on these concepts

Log Context

Log”Failed to put audit trail template” classname is
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                         } else if (TemplateUtils.checkTemplateExistsAndVersionMatches(INDEX_TEMPLATE_NAME;
                                SECURITY_VERSION_STRING; clusterStateResponse.getState(); logger;
                                Version.CURRENT::onOrBefore) == false) {
                            putTemplate(customAuditIndexSettings(settings; logger);
                                    e -> {
                                        logger.error("failed to put audit trail template"; e);
                        } else {
                            // for some reason we can't start up since the remote cluster is not fully setup. in this case
                            // we try to wait for yellow status (all primaries started up) this will also wait for

Related issues to this log

We have gathered selected Q&A from the community and issues from Github, that can help fix related issues please review the following for further information :

1 Logstash + Elasticsearch template mapping fails to add to Elasticsearch

0.77 K 

Upgrade To Es 6 1 0 Trouble  

Logstash Outputs Elasticsearch Fail

About Opster

Opster detects root causes of Elasticsearch problems, provides automated recommendations and can perform various actions to prevent issues and optimize performance

Find Configuration Errors

Analyze Now