简体   繁体   中英

elasticsearch kibana setup in separate aws ec2 servers

I have installed elasticsearch in one instance and kibana in another instance. Both the services are running and I can connect elasticsearch using curl and its instance public ip with port 9200 version: 7.9.2 both Assume: Public ips elasticsearch - xxxx kibana - yyyy

Issue: Cant connect kibana instance with its curl and public ip with port 5601 Error: Failed to connect to yyyy port 5601: connection refused

Query: Correct config for elasticsearch.yml and kibana.yml

` kibana.yml: port: 5601 server.host: "yyyy" elasticsearch.hosts: ["http://xxxx:9200"]

elasticsearch.yml: network.host: 0.0.0.0 http.port: 9200 `

  1. It is extremely likely you have not configured the correct security group rules on the kibana instance to permit you to access the service. You need an ingress rule permitting tcp to port 5601 from whatever your ingress range is.

  2. Likewise, it is extremely likely you have not granted access to elasticsearch (xxxx:9200) from yyyy

Check your security group rules.

Also, please ensure your elasticsearch public ip does not permit access from 0.0.0.0 - publically accessible elasticsearch clusters are a prime target for naughty people.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM