Continuing the discussion from How to get started with Elastic APM?:
I've taken two VM as suggested -
VM1 (elasticsearch, kibana): 192.168.1.41
VM2 (Fleet Elastic Agent): 192.168.1.42
I've install Elasticsearch and kibana in one VM (VM1). Kibana GUI is working fine.
Change made in elasticsearch configuration file -
network.host: localhost
http.port: 9201
As both are in the same server, in kibana configuration is made the change as below -
elasticsearch.hosts: ["http://localhost:9201"]
The problem is - when I tried to set up the fleet server in VM2 from Kiabana GUI, installation is getting failed as VM2 cannot communicate to elasticsearch with URL http://192.168.1.41:9201. This elasticsearch URL is required in Fleet setup. I did curl from VM1 but it failed too. When I do curl from VM1 using this http://localhost:9201 it is getting successful.
When I made change in elasticsearch configuration file like below, and give elasticsearch service restart it failed.
network.host: 0.0.0.0
Any suggestion how I can have my single server (VM1) ealsticsearch available from different server (VM2) to complete Fleet server setup?