Unable to connect to Elasticsearch at http://localhost:5601 - Windows 10


(messai) #1

kibana doesn't work
i installed kibana and elastic in the same server
i have this error for kibana

kibna.yml

Kibana is served by a back end server. This controls which port to use.

server.port: 5601

The host to bind the server to.

server.host: "0.0.0.0"

If you are running kibana behind a proxy, and want to mount it at a path,

specify that path here. The basePath can't end in a slash.

server.basePath: ""

The maximum payload size in bytes on incoming server requests.

server.maxPayloadBytes: 1048576

The Elasticsearch instance to use for all your queries.

elasticsearch.url: "http://swbcfreei361:9200"

preserve_elasticsearch_host true will send the hostname specified in elasticsearch. If you set it to false,

then the host you use to connect to this Kibana instance will be sent.

elasticsearch.preserveHost: true

Kibana uses an index in Elasticsearch to store saved searches, visualizations

and dashboards. It will create a new index if it doesn't already exist.

kibana.index: kibana_blackriver

log kibana


(messai) #2

log kibana
{"type":"log","@timestamp":"2018-10-17T15:09:15Z","tags":["status","plugin:kibana@5.5.2","info"],"pid":6792,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-10-17T15:09:15Z","tags":["status","plugin:elasticsearch@5.5.2","info"],"pid":6792,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-10-17T15:09:15Z","tags":["status","plugin:console@5.5.2","info"],"pid":6792,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-10-17T15:09:15Z","tags":["status","plugin:metrics@5.5.2","info"],"pid":6792,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-10-17T15:09:15Z","tags":["status","plugin:timelion@5.5.2","info"],"pid":6792,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-10-17T15:09:15Z","tags":["status","plugin:elasticsearch@5.5.2","error"],"pid":6792,"state":"red","message":"Status changed from yellow to red - Service Unavailable","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2018-10-17T15:09:15Z","tags":["listening","info"],"pid":6792,"message":"Server running at http://0.0.0.0:5601"}
{"type":"log","@timestamp":"2018-10-17T15:09:15Z","tags":["status","ui settings","error"],"pid":6792,"state":"red","message":"Status changed from uninitialized to red - Elasticsearch plugin is red","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"response","@timestamp":"2018-10-17T15:09:36Z","tags":[],"pid":6792,"method":"get","statusCode":200,"req":{"url":"/","method":"get","headers":{"accept":"text/html, application/xhtml+xml, /","accept-language":"fr-FR","user-agent":"Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko","accept-encoding":"gzip, deflate","host":"localhost:5601","dnt":"1","connection":"Keep-Alive"},"remoteAddress":"127.0.0.1","userAgent":"127.0.0.1"},"res":{"statusCode":200,"responseTime":78,"contentLength":9},"message":"GET / 200 78ms - 9.0B"}
{"type":"response","@timestamp":"2018-10-17T15:09:36Z","tags":[],"pid":6792,"method":"get","statusCode":503,"req":{"url":"/app/kibana","method":"get","headers":{"acc


(Tyler Smalley) #3

If both Elasticsearch and Kibana are on the same server, you should not set anything for elasticsearch.url or use localhost:9200. The problem is it can't connect to http://swbcfreei361:9200


(messai) #4

Hi thank you for your replay but elastic search it is working fine but the issue with kibana
when i put `localhost:5601 i have the screenshot that i put in my message


(Tyler Smalley) #5

I know, this is because Kibana can not connect to Elasticsearch. In your kibana.yml you provided you have elasticsearch.url: http://swbcfreei361:9200. If it's on the same machine, that value should be localhost:9200.


(messai) #6

thank you for your answer it was an issue with network firewall it works for me now :slight_smile:


(system) #7

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.