3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Kibanaの外部からの接続設定

Last updated at Posted at 2020-04-18

kibanaのserver.hostを修正した際にハマったのでそのメモ。

環境

  • CentOS 8
  • kibana-6.8.8-1

Kibanaの外部からの接続

デフォルトでは、IPアドレス等でアクセスすると下記の接続拒否エラーが表示される。

$ curl 192.168.33.21:5601
curl: (7) Failed to connect to 192.168.33.21 port 5601: Connection refused

接続設定

kibana.ymlの更新

外部からkibanaにアクセスできるよう設定更新。

$ vi /etc/kibana/kibana.yml

server.hostの値を "0.0.0.0" (もしくはIPに応じた適切な値)に調整

#server.host: "localhost"
server.host: "0.0.0.0"

サービス再起動

設定後にサービスを再開

$ systemctl restart kibana

ダメな例

ダブルクォーテーションで括っていない

#server.host: "localhost"
server.host: 0.0.0.0

「:」の後にスペースがない

#server.host: "localhost"
server.host:"0.0.0.0"
3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?