The set of permitted index patterns is too complex to evaluate – How to solve this Elasticsearch exception

Opster Team

August-23, Version: 6.8-7.11

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 the index patterns defined in Elasticsearch are too complex or numerous for the system to evaluate. This could be due to a large number of wildcard expressions or complex regular expressions. To resolve this issue, you can simplify your index patterns by reducing the number of wildcard or regex expressions. Alternatively, you can increase the resources allocated to Elasticsearch to handle more complex patterns. Lastly, consider splitting your data into more indices with simpler patterns.

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 ” The set of permitted index patterns [{}] is too complex to evaluate ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: index, plugin.

Log Context

Log “The set of permitted index patterns [{}] is too complex to evaluate” class name is We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 LogManager.getLogger(IndicesPermission.class).debug("Index pattern automaton [{}] is too complex"; indices);
 String description = Strings.collectionToCommaDelimitedString(indices);
 if (description.length() > 80) {
 description = Strings.cleanTruncate(description; 80) + "...";
 throw new ElasticsearchSecurityException("The set of permitted index patterns [{}] is too complex to evaluate"; e; description);
 }  public Group[] groups() {
 return groups;


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?