Kibana 502 Bad gateway in logs

Hi,

I have successfully installed kibana 5.2 with ES 5.2. I am able to open the UI page but nothing seems to be visible. Just an empty page. Looking at the kibana logs i see the following error. I have no idea what does it mean and why is it feeling. But can tell that it is failing with a 502 bad gateway error. Can anyone point me to the solution.

Post Referred for ES installation:- ES Installation

{"type":"response","@timestamp":"2017-02-19T03:56:51Z","tags":[],"pid":13337,"method":"post","statusCode":502,"req":{"url":"/es_admin/.kibana/index-pattern/_search?stored_fields=","method":"post","headers":{"host":"example.com:5601","content-length":"39","accept":"application/json, text/plain, */*","origin":"http://example.com:5601","kbn-version":"5.2.1","user-agent":"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36","content-type":"application/json","referer":"http://example.com:5601/app/kibana","accept-encoding":"gzip, deflate","accept-language":"en-US,en;q=0.8,hi;q=0.6","connection":"Keep-Alive","x-bluecoat-via":"2a84e0f32f31b460"},"remoteAddress":"xx.xx.xx.xx","userAgent":"xx.xx.xx.xx","referer":"http://example.com:5601/app/kibana"},"res":{"**statusCode":502**,"responseTime":95,"contentLength":9},"message":"POST /es_admin/.kibana/index-pattern/_search?stored_fields= 502 95ms - 9.0B"}

--
Niraj

I finally was able to fix my problem.

Hi @niraj_kumar,

glad to hear it. If you feel like it, please let us know how you solved your problem. Other users encountering the same problem might benefit from reading your solution.

Thanks @weltenwort for replying back.

It was a missing port number in kibana.yml file pointing to ES URL. In my case i just mentioned it as

elasticsearch.url: "http://example.com"

where as it should be

elasticsearch.url: "http://example.com:9200"

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