DEV Community

Turan Kılıç
Turan Kılıç

Posted on

Enable Remote Access to Kibana and Elasticsearch in Same Network

Hello there,
Welcome to guide to enabling remote access to Kibana and Elasticsearch from a machine to another machine in the same network. Let's get started.

First of all you have to edit "elasticsearch.yml" file.

nano /etc/elasticsearch/elasticsearch.yml
Enter fullscreen mode Exit fullscreen mode

It should look like this:

transport.host: localhost 
transport.tcp.port: 9300 
http.port: 9200
network.host: 0.0.0.0
Enter fullscreen mode Exit fullscreen mode

"network.host" line must be "0.0.0.0" to allow remote access.
You must restart the service to make configuration work.

sudo systemctl restart elasticsearch
Enter fullscreen mode Exit fullscreen mode

And then you have to edit Kibana's config file which names as "kibana.yml"

nano /etc/kibana/kibana.yml
Enter fullscreen mode Exit fullscreen mode

It should look like this:

server.port: 5601
server.host: "X.X.X.X" (Kibana server's IP address)
Enter fullscreen mode Exit fullscreen mode

You must restart the service to make configuration work.

sudo systemctl restart kibana
Enter fullscreen mode Exit fullscreen mode

After that editing part, then you will be able to access Kibana's Dashboard on a web browser with this:

http://X.X.X.X:5601
Enter fullscreen mode Exit fullscreen mode

X.X.X.X is your Kibana server's IP address

Hope it would be helpful :)

Top comments (0)