Skip to content

Instantly share code, notes, and snippets.

@repeatedly
Created November 12, 2013 09:11
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save repeatedly/7427856 to your computer and use it in GitHub Desktop.
Save repeatedly/7427856 to your computer and use it in GitHub Desktop.
"Fluentd as a Kibana" at Elasticsearch meetup #2

fluent-plugin-kibana-server

http://rubygems.org/gems/fluent-plugin-kibana-server

Fluentdの中でKibanaを動かす!

  • いちいちKibanaをDLしてくるの面倒くさい
    • Kibana v3からonly JavaScriptなので展開が楽
    • 大抵FluentdからElasticsearchに投げてる時に見るので,Fluentdと一緒に起動してくれた方が楽
  • そこでFluentdプラグイン!

設定

<source>
  type kibana_server

  # optional parameters
  bind 0.0.0.0
  port 24300
  mount '/'
  elasticsearch_url "http://localhost:9200"
  access_log_path /var/log/fluentd-kibana
</source>

TODO

choplin/fluent-plugin-kibana-server#1

ある日より前のインデックスを勝手に消す機能.Kibanaを利用する場合は直近の解析が主なので,もう使わなくなったログを持ったインデックスを自動で削除したい

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment