Found multiple matching wildcard services for – – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 7.7-8.9

Briefly, this error occurs when Elasticsearch encounters multiple services that match a single wildcard. This can happen when there are multiple indices or services with similar names. To resolve this issue, you can either rename the indices or services to make them unique, or specify the exact name of the index or service you want to use, instead of using a wildcard. Another solution is to adjust your search query to be more specific, thus avoiding the wildcard match.

This guide will help you check for common problems that cause the log ” Found multiple matching wildcard services for [{}] [{}] – [{}] ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin.

Log Context

Log “Found multiple matching wildcard services for [{}] [{}] – [{}]” classname is
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                currentState.cache.put(cacheKey; serviceProvider);
                return serviceProvider;
            default -> {
                final String names = Strings.collectionToCommaDelimitedString(matches.keySet());
                logger.warn("Found multiple matching wildcard services for [{}] [{}] - [{}]"; entityId; acs; names);
                throw new IllegalStateException(
                    "Found multiple wildcard service providers for entity ID ["
                        + entityId
                        + "] and ACS ["
                        + acs