Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kibana4 to listen on Port 80 instead of Port 5601

I have elasticsearch 1.4 and kibana4 running on an Amazo EC2 instance running RHEL7.

Kibana4 is running as a standalone process and is not deployed in a web container such as nginx.It is listening on Port 5601.(the default port). I would like to have kibana listen on port 80.

Can this be achieved without using nginx? If yes how?

like image 594
liv2hak Avatar asked Apr 13 '15 21:04

liv2hak


People also ask

How do I change my Kibana port?

The default host and port settings configure Kibana to run on localhost:5601 . To change this behavior and allow remote users to connect, you'll need to update your kibana. yml file. You can also enable SSL and set a variety of other options.

What port does Elasticsearch use?

By default, Elasticsearch will use port 9200 for requests and port 9300 for communication between nodes within the cluster.

How do I access Kibana locally?

Log on to the web applicationedit If you are using a self-managed deployment, access Kibana through the web application on port 5601. Point your web browser to the machine where you are running Kibana and specify the port number. For example, localhost:5601 or http://YOURDOMAIN.com:5601 .

Where can I find Kibana port?

You can use netstat command to view all the ports that are being used in the system. If not exists, install using sudo apt install net-tools . Type in netstat -tnlp . Provide sudo to get which ports are used by different programs.


1 Answers

You need to set capabilities CAP_NET_BIND_SERVICE to bind non root process to a privileged port (<1024)

to make kibana listen on port 80 :

1- edit kibana port in /etc/kibana/kibana.yml

server.port : "80"

2- run the following commands :

sudo setcap cap_net_bind_service=+epi /usr/share/kibana/bin/kibana
sudo setcap cap_net_bind_service=+epi /usr/share/kibana/bin/kibana-plugin
sudo setcap cap_net_bind_service=+epi /usr/share/kibana/bin/kibana-keystore
sudo setcap cap_net_bind_service=+epi /usr/share/kibana/node/bin/node
like image 53
Amine Bouzid Avatar answered Nov 15 '22 10:11

Amine Bouzid