端くれプログラマの備忘録 Elasticsearch [Elasticsearch] KibanaでApacheアクセスログを可視化する

[Elasticsearch] KibanaでApacheアクセスログを可視化する

前のエントリでLogstashを使ってApacheアクセスログをElasticsearchに読み込んだ。次はKibanaをインストールして可視化したい。

Kibanaのインストール

$ wget https://download.elastic.co/kibana/kibana/kibana-4.4.2-linux-x64.tar.gz
$ tar zxvf kibana-4.4.2-linux-x64.tar.gz
$ cd kibana-4.4.2-linux-x64
$ vi config/kibana.yml
elasticsearch.url: "http://localhost:9200"

Kibanaの実行

とりあえず動作確認のためにコマンド叩いて実行。

$ ./bin/kibana
  log   [17:06:02.432] [info][status][plugin:kibana] Status changed from uninitialized to green - Ready
  log   [17:06:02.482] [info][status][plugin:elasticsearch] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [17:06:02.496] [info][status][plugin:kbn_vislib_vis_types] Status changed from uninitialized to green - Ready
  log   [17:06:02.499] [info][status][plugin:markdown_vis] Status changed from uninitialized to green - Ready
  log   [17:06:02.503] [info][status][plugin:metric_vis] Status changed from uninitialized to green - Ready
  log   [17:06:02.506] [info][status][plugin:spyModes] Status changed from uninitialized to green - Ready
  log   [17:06:02.509] [info][status][plugin:statusPage] Status changed from uninitialized to green - Ready
  log   [17:06:02.513] [info][status][plugin:table_vis] Status changed from uninitialized to green - Ready
  log   [17:06:02.576] [info][listening] Server running at http://0.0.0.0:5601
  log   [17:06:07.880] [info][status][plugin:elasticsearch] Status changed from yellow to yellow - No existing Kibana index found
  log   [17:06:14.649] [info][status][plugin:elasticsearch] Status changed from yellow to green - Kibana index ready

ブラウザからアクセス

http://192.168.33.10:5601/

kibana-settings

kibana-discover

参考サイト

Getting Kibana Up and Running
https://www.elastic.co/guide/en/kibana/4.1/setup.html

Kibana User Guide [4.1]
https://www.elastic.co/guide/en/kibana/4.1/index.html

NginxのアクセスログをKibanaで可視化 – Carpe Diem
http://christina04.hatenablog.com/entry/2016/01/13/194304