Hi,
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(https://xxx-hat333wclpfnnkdkuuigwsti5a.us-east-2.es.amazonaws.com:443)): 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.