Can't open Kibana page in my web browser

Hi,

I am not able to open Kibana page in my web browser.
I get ERR_CONNECTION_REFUSED

Elastic + Kibana installed on the same machine:
NAME="Ubuntu"
VERSION="16.04.2 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.2 LTS"
VERSION_ID="16.04"

Earlier I was able to see Kibana page in my browser but there are some issues with plugins that tried to fix.
So I checked the status of elastic and it was running,

I checked the logstash status and it was down so I started it and after it, I started Kibana

Now I am not able to load Kibana page on my Browser.

Could you please help me resolve it?

localhost:9200 :
{
"name" : "node1",
"cluster_name" : "automation-",
"cluster_uuid" : "-LFRoTUMQGNrrw",
"version" : {
"number" : "5.6.1",
"build_hash" : "667b497",
"build_date" : "2017-09-14T19:22:05.189Z",
"build_snapshot" : false,
"lucene_version" : "6.6.1"
},
"tagline" : "You Know, for Search"
}

what is log message for kibana?

/var/log/kibana/kibana.log is default location.

There are logs only for elasticsearch in /var/log

maybe I have to add or enable it via kibana.yml file?

grep logging.dest /etc/kibana/kibana.yml
logging.dest: /var/log/kibana/kibana.log

add this line. create /var/log/kibana dir and restart kibana

in my kibana.yml:

Enables you specify a file where Kibana stores log output.

logging.dest: stdout

Set the value of this setting to true to suppress all logging output.

logging.silent: false

Set the value of this setting to true to suppress all logging output other than error messages.

logging.quiet: false

Set the value of this setting to true to log all events, including system usage information

and all requests.

logging.verbose: true

logging.dest: /var/log/kibana/kibana.log

I created kibana directory in /var/log (sudo mkdir kibana) and restarted kibana ( sudo service kibana restart)

but kibana.log not created

that is weired. it should create a file. try creating file manually

touch /var/log/kibana/kibana.log

/var/log/kibana$ sudo service kibana status
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2020-01-07 20:36:46 IST; 1s ago
Main PID: 5245 (node)
Tasks: 6
Memory: 90.8M
CPU: 1.487s
CGroup: /system.slice/kibana.service
└─5245 /usr/share/kibana/bin/../node/bin/node --no-warnings /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml

Jan 07 20:36:46automation systemd[1]: Started Kibana.
automation:/var/log/kibana$ sudo service kibana status
● kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: enabled)
Active: inactive (dead) (Result: exit-code) since Tue 2020-01-07 20:36:48 IST; 826ms ago
Process: 5245 ExecStart=/usr/share/kibana/bin/kibana -c /etc/kibana/kibana.yml (code=exited, status=1/FAILURE)
Main PID: 5245 (code=exited, status=1/FAILURE)

Jan 07 20:36:48 automation systemd[1]: kibana.service: Unit entered failed state.
Jan 07 20:36:48 automation systemd[1]: kibana.service: Failed with result 'exit-code'.
Jan 07 20:36:48 automation systemd[1]: kibana.service: Service hold-off time over, scheduling restart.
Jan 07 20:36:48 automation systemd[1]: Stopped Kibana.
Jan 07 20:36:48 automation systemd[1]: kibana.service: Start request repeated too quickly.
Jan 07 20:36:48 automation systemd[1]: Failed to start Kibana.

created manually the kibana.log and restarted kibana.

it's running for number a seconds and after it fails

kibana.log still empty

can you check which version of elk you running.
rpm -qa |grep kibana etc...

how do I need to set chown... for kibana.log?

rpm not installed

oh it is different flavor of linux may be dpkg -l |grep kibana

chown kibana:kibana to change ownership of file

are you running kibana as root or as user?

localhost:9200 :
{
"name" : "node1",
"cluster_name" : "automation-",
"cluster_uuid" : "-LFRoTUMQGNrrw",
"version" : {
"number" : "5.6.1",
"build_hash" : "667b497",
"build_date" : "2017-09-14T19:22:05.189Z",
"build_snapshot" : false,
"lucene_version" : "6.6.1"
},
"tagline" : "You Know, for Search"
}

dpkg -l |grep kibana
ii kibana 5.6.2 amd64 Explore and visualize your Elasticsearch data

you running very old version of kibana and ELK is on 7.5.1 now.

is this production? if just test upgrade it.

if you don't want to upgrade it then you will have to find a way to start logging and then you will be able to figure out where it is stuck

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