.
I have Graylog+Elasticsearch+MongoDB on 1 server and Grafana on another server, as per link you helped in solving my query, but looks like because of that I am not able to connect Grafana to Elasticsearch.
Kindly let me know what needs to change or if there is any more details needed.
What version of Grafana is that? On mine, I got a 502 error when I didn’t fill in the host name, but the 502 actually shows up in the bar above “Save & Test”
Check firewall ports to make sure that server 2 can talk to server 1 on port 9200, check your hostname, make sure that resolves (it looks like you might not be using a fully qualified hostname) etc.
What does your Graylog config specify as the url for elasticsearch? Mine is still default, I still only have a single dev server, so using default localhost works fine.
#List of Elasticsearch hosts Graylog should connect to.
# Need to be specified as a comma-separated list of valid URIs for the http ports of your elasticsearch nodes.
# If one or more of your elasticsearch hosts require authentication, include the credentials in each node URI that
# requires authentication.
#
# Default: http://127.0.0.1:9200
#elasticsearch_hosts = http://node1:9200,http://user:password@node2:19200