I am having trouble sending data from Heartbeat to Elasticsearch (both version 7.3). On the same server runs an instance of apm-server which makes no trouble, so I used the same configuration for elasticsearch giving the server (real IP 188.8.131.52, not localhost), username
and password. Still I get
2020-03-14T11:41:45.424Z DEBUG [elasticsearch] elasticsearch/client.go:723 Ping request failed with: 503 Service Unavailable: <HTML><HEAD><TITLE>ERROR</TITLE></HEAD><BODY> <H1>ERROR</H1> <HR><UL> The server refuse to browse the page.<BR> The URL or other input may not be correct. Please confirm the value.<BR> <BR> <UL> URL: <b>http://184.108.40.206:9200/</b><br> ERROR: <b>CONNECT(220.127.116.11:9200)/connect: Connection timed out</b><br> </UL> </UL> <HR><DIV ALIGN=right>Powered by F-Secure</DIV> </BODY></HTML> 2020-03-14T11:41:46.468Z INFO pipeline/output.go:93 Attempting to reconnect to backoff(elasticsearch(http://18.104.22.168:9200)) with 1 reconnect attempt(s) 2020-03-14T11:41:46.468Z DEBUG [elasticsearch] elasticsearch/client.go:719 ES Ping(url=http://22.214.171.124:9200)
as reponse. I am running heartbeat with sudo, since otherwise it doesn't seem to work to create a tcp connection. When starting heartbeat with -d '*' I see that the IP I want to ping seems to work.
In the elasticsearch.yml the host is given as
Hope anyone knows where the problem is. Thanks!