Elasticsearch Data Source Failing to Connect with 502 Error

Elasticsearch Cluster -
Hosted in AWS on EC2 instances
ALB receives requests from whitelisted IPs and forwards to all data nodes
Version 6.2

Grafana -
Hosted in private data center
Version 6.4.3

I able to connect to the Elasticsearch API from the Grafana using a curl

Error I’m seeing from the Grafana log
t=2019-12-09T22:26:42+0000 lvl=eror msg=“Failed to update datasource. Reload new version and try again” logger=context userId=3 orgId=2 uname= error=“Trying to update old version of datasource”
t=2019-12-09T22:26:42+0000 lvl=eror msg=“Request Completed” logger=context userId=3 orgId=2 uname= method=PUT path=/api/datasources/7 status=500 remote_addr=<remote_addr> time_ms=172 size=75 referer=https://<my_grafana_address>.com/datasources/edit/7/

Any ideas on why I’m seeing a 502 error?

YOu need to add:

in the elasticsearch datasource like below…

image

Fadjar Tanndabawnaa