Briefly, this error occurs when youâre configuring Elasticsearch AWS settings and you specify both the âregionâ and âendpointâ parameters. These parameters are mutually exclusive, meaning you should only use one or the other. To resolve this issue, you can either remove the âregionâ parameter if you want to use a specific âendpointâ, or remove the âendpointâ parameter if you want to use a âregionâ. Make sure to save your changes and restart Elasticsearch for the changes to take effect.
This guide will help you check for common problems that cause the log â you must not specify both region and endpoint â to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: .
Log Context
Log âyou must not specify both region and endpointâ class name is CleanupS3RepositoryCommand.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :
if (Strings.isNullOrEmpty(region) && Strings.isNullOrEmpty(endpoint)) { throw new ElasticsearchException("region or endpoint option is required for cleaning up S3 repository"); } if (Strings.isNullOrEmpty(region) == false && Strings.isNullOrEmpty(endpoint) == false) { throw new ElasticsearchException("you must not specify both region and endpoint"); } String accessKey = accessKeyOption.value(options); if (Strings.isNullOrEmpty(accessKey)) { throw new ElasticsearchException("access_key option is required for cleaning up S3 repository");
[ratemypost]