Kibana 4.6.4 session got expired if network connection is lost

Hi All,

I have setup ES 2.4.5 in Google cloud platform and elasticsearch services are running fine without any issues.
Internal IP :- 10.128.0.5
External IP:- 104.198.129.135

But when I started the kibana with the command nohup ./bin/kibana &
i am getting the following response in the file,

{"type":"log","@timestamp":"2017-06-28T13:42:17Z","tags":["status","plugin:kibana@1.0.0","info"],"pid":2475,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2017-06-28T13:42:17Z","tags":["status","plugin:elasticsearch@1.0.0","info"],"pid":2475,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2017-06-28T13:42:17Z","tags":["status","plugin:kbn_vislib_vis_types@1.0.0","info"],"pid":2475,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2017-06-28T13:42:17Z","tags":["status","plugin:markdown_vis@1.0.0","info"],"pid":2475,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2017-06-28T13:42:17Z","tags":["status","plugin:metric_vis@1.0.0","info"],"pid":2475,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2017-06-28T13:42:17Z","tags":["status","plugin:spyModes@1.0.0","info"],"pid":2475,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2017-06-28T13:42:17Z","tags":["status","plugin:statusPage@1.0.0","info"],"pid":2475,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2017-06-28T13:42:17Z","tags":["status","plugin:elasticsearch@1.0.0","info"],"pid":2475,"state":"green","message":"Status changed from yellow to green - Kibana index ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2017-06-28T13:42:17Z","tags":["status","plugin:table_vis@1.0.0","info"],"pid":2475,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2017-06-28T13:42:17Z","tags":["listening","info"],"pid":2475,"message":"Server running at http://10.128.0.5:5601"}
{"type":"response","@timestamp":"2017-06-28T13:42:19Z","tags":[],"pid":2475,"method":"get","statusCode":200,"req":{"url":"/","method":"get","headers":{"host":"104.198.129.135:5601","connection":"keep-alive","cache-control":"max-age=0","upgrade-insecure-requests":"1","user-agent":"Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.104 Safari/537.36","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","accept-encoding":"gzip, deflate","accept-language":"en-US,en;q=0.8"},"remoteAddress":"157.49.4.139","userAgent":"157.49.4.139"},"res":{"statusCode":200,"responseTime":98,"contentLength":9},"message":"GET / 200 98ms - 9.0B"}
{"type":"response","@timestamp":"2017-06-28T13:42:19Z","tags":[],"pid":2475,"method":"get","statusCode":200,"req":{"url":"/app/kibana","method":"get","headers":{"host":"104.198.129.135:5601","connection":"keep-alive","upgrade-insecure-requests":"1","user-agent":"Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.104 Safari/537.36","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","referer":"http://104.198.129.135:5601/","accept-encoding":"gzip, deflate","accept-language":"en-US,en;q=0.8"},"remoteAddress":"157.49.4.139","userAgent":"157.49.4.139","referer":"http://104.198.129.135:5601/"},"res":{"statusCode":200,"responseTime":113,"contentLength":9},"message":"GET /app/kibana 200 113ms - 9.0B"}

I started the kibana in putty and if incase if the putty session got disconnected from the internet. Kibana process was killed automatically and I couldn't find errors in the file.

Below are the kibana.yml config changes added in the file and please help me to resolve this issue.

# 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: "10.128.0.5"

# The Elasticsearch instance to use for all your queries.
 elasticsearch.url: "http://104.198.129.135:9200"

# Time in milliseconds to wait for elasticsearch to respond to pings, defaults to
# request_timeout setting
 elasticsearch.pingTimeout: 1500

# Time in milliseconds to wait for responses from the back end or elasticsearch.
# This must be > 0
 elasticsearch.requestTimeout: 30000

# 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"

Regards,
Ganeshbabu R

Hi

It sounds like Kibana is stopping when you close the terminal. Maybe you should use upstart or something to manage the process. ?Do let us know...

Thanks
Rashmi

Hi Rashmi,

Thanks for helping to find the solution.

Starting the kibana as service it helps to resolve the issue even if the terminal got disconnected or closed.

Regards,
Ganeshbabu R

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