Kibana Dashboard not loaded in AWS ES

Hi,

I have 3 master and 2 data nodes in amazon elastic search. we have some production servers and installed filebeat and are able to push logs in elasticsearch.
For now we have installed metricbeat on one of the production servers and monitor the Mongo performance. Metricbeat is started and collected the metrics and stored in elasticsearch. But the issue was while setup the default metricbeat dashboard using kibana its show unable to connect kibana.

root@AW-PR-NT-MO4-01 ~]# metricbeat setup --dashboards
Loading dashboards (Kibana must be running and reachable)
Exiting: error connecting to Kibana: fail to get the Kibana version: HTTP GET request to https://XXXXXXXgspy6qsqbon5xe6niqjaip2q2y.me-south-1.es.amazonaws.com:5601/_plugin/kibana/api/status fails: fail to execute the HTTP GET request: Get “https://vpc-prod-neo-netsys-es-gspy6qsqbon5xe6niqjaip2q2y.me-south-1.es.amazonaws.com:5601/_plugin/kibana/api/status”: context deadline exceeded (Client. Timeout exceeded while awaiting headers). Response:

Could someone tell me why it’s happening are we need to change the configuration?

What version of version and distribution of Metricbeat are you using?

AWS ES distribution is 7.10 and metricbeat version is 7.12.1

MetricBeat OSS distribution or MetricBeat Elastic License distribution? Sadly they are different.

I have to use Metricbeat-OSS distribution

OK great - have you confirmed that your configuration includes the correct authentication information?

Yes Configuration is correct but I have one doubt in AWS ES kibana URL is HTTPS but in metricbeat config they have mentioned 5601 port. How do we configure on this on metricbeat

That should be your Kibana/OpenSearch Dashboard URL (as you would type in your browser) - not sure what your port should be but may not be 5601. I believe you need to place that in setup.kibana.host in your configuration.