Getting error while connecting to metricbeat on AWS Elasticsearch


I am running metricbeat on kubernetes and try to connect AWS Elasticsearch service and getting this error

pipeline/output.go:155 Failed to connect to backoff(elasticsearch( Connection marked as failed because the onConnect callback failed: cannot retrieve the elasticsearch license from the /_license endpoint, Metricbeat requires the default distribution of Elasticsearch. Please make the endpoint accessible to Metricbeat so it can verify the license.: unauthorized access, could not connect to the xpack endpoint, verify your credentials

But when I try to connect same metricbeat with elasticsearch host somewhere else it get connected easily.

Thanks for the help in advance.

Actually, AWS Elasticsearch is a totally different product:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.