Skip to content
This repository has been archived by the owner on May 23, 2019. It is now read-only.

KibanaGuide

wesyoung edited this page Jan 1, 2015 · 14 revisions

Kibana

Since CIF is built upon ElasticSearch, Kibana can be installed to talk directly to the ElasticSearch instance and create some eye-candy:

so your managers can understand this.

Keep in mind, if you're going to run Kibana on the same host as CIF, you might need to alter the default proxy paths in /etc/apache2/cif.conf as by default, the CIF API runs under /. It might be best to run kibana under a different host or the API as a separate virtual host

ProxyPass /api http://localhost:5000/ keepalive=Off
ProxyPassReverse /api http://localhost:5000/

Installation

  1. install Kibana3 into /var/www/kibana
  2. integrate with a webserver
<Location /kibana>
  Allow from all
  Options -Multiviews
</Location>
  1. read the guide
  2. copy the demo CIF dashboard
$ sudo cp contrib/kibana-dashboard.json /var/www/kibana/app/dashboards/cif.json
$ sudo chown -R www-data:www-data /var/www/kibana/app/dashboards/cif.json
  1. log into the demo dash: https://localhost/kibana/index.html#/dashboard/file/cif.json

Notes

  • Make sure the permissions are correct for /var/www/kibana
  • If you're using apache, make sure mod-proxy is enabled (ubuntu: libapache2-mod-proxy-html)
  • with apache, this can be included in sites-enabled/default-ssl as an Include directive to /etc/apache2/kibana.conf where the sample apache config can be placed.
<VirtualHost *:80>
   ServerAdmin webmaster@localhost
   Include /etc/apache2/cif.conf
   Include /etc/apache2/kibana.conf

   DocumentRoot /var/www
   ...

References

Clone this wiki locally