You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Metricbeat running on EC2 is failing with error: unable to connect to AWS OpenSearch service. ERROR 401 Unauthorized
My openSearch domain enabled fine-grain access control(FGAC) with IAM role as master user.
I have the access policy attached to EC2 IAM role already and mapped the opensearch role "all_access" so it should reach the domain endpoint. However, this is not working.
Related component
Other
To Reproduce
Create AWS OpenSearch domain and enable FGAC.
Create an EC2 instance and attach the IAM policy to allow access to opensearch domain created above.
Metricbeat is maintained by Elastic. It looks like someone raised a similar issue for filebeat here: elastic/beats#31613. Maybe you could raise a similar issue?
[Triage - attendees 12345] @nagachinni Thanks for creating this issue; however, it isn't being accepted due to being out of scope for this project, please reach out through support channels with your hosting provider to troubleshoot.
Describe the bug
Metricbeat running on EC2 is failing with error: unable to connect to AWS OpenSearch service. ERROR 401 Unauthorized
My openSearch domain enabled fine-grain access control(FGAC) with IAM role as master user.
I have the access policy attached to EC2 IAM role already and mapped the opensearch role "all_access" so it should reach the domain endpoint. However, this is not working.
Related component
Other
To Reproduce
You'll receive error as stated above when running metricbeat.
Expected behavior
Metricbeat should be able to push metrics to opensearch endpoint.
Additional Details
Host/Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: