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?
Changing the network.host to 0.0.0.0 tells Elasticsearch that you want to try and run in a production mode and starts enforcing bootstrap checks. Do you have the Elasticsearch service logs for why it's failing?
Solved as per your suggestion by adding the following line in elasticsearch.yml file
discovery.type: single-node
Using kibana GUI, Fleet server made up by installing Elastic Agent with "Fleet up policy". After that I tied to add Elastic Agent with Agent policy; that got failed. Suddenly I saw an error message in kibana "Fleet Server is not Healthy". I removed the Fleet server from kibana GUI and tried to install (VM2 using CLI) again but it is getting failed.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.