Difference between revisions of "Kibana setup"
Line 1: | Line 1: | ||
[[Category:Linux]] | [[Category:Linux]] | ||
+ | |||
=Installation= | =Installation= | ||
Line 87: | Line 88: | ||
Access the Kibana web page on http://192.168.1.203/kibana | Access the Kibana web page on http://192.168.1.203/kibana | ||
+ | |||
+ | |||
+ | If you haven't configure Logstash yet you should see an empty page! :-) |
Revision as of 10:44, 18 November 2014
Contents
Installation
Download the latest version of Kibana: http://www.elasticsearch.org/overview/kibana/installation/
By the time of this writting, latest release is v3.1.2
cd /opt
wget https://download.elasticsearch.org/kibana/kibana/kibana-3.1.2.zip
unzip kibana-3.1.2.zip
rm kibana-3.1.2.zip
ln -s /opt/kibana-3.1.2 /opt/kibana
Configuration
ElasticSearch backend
If Kibana and Logstash are on the same server, then you don't have to change your root configuration!! :-) Otherwise, edit:
cp /opt/kibana/config.js /opt/kibana/config.js.backup
vim /opt/kibana/config.js
Adjust elasticSearch value, ~ line 32.
Dashboard settings
You can init the dashboard configuration from default logstash settings:
cd /opt/kibana/app/dashboard
cp default.json default.json.backup
cp logstash.json default.json
Apache2 configuration
Either you create a new configuration or your update a VirtualHost configuration.
Like Zabbix does, I chose to use a configuration for kibana rather than a VHost change.
cd /etc/apache2/conf-available
vim kibana.conf
Put the following content:
# Kibana application
<IfModule mod_alias.c>
Alias /kibana /opt/kibana
</IfModule>
<Directory "/opt/kibana">
Options FollowSymLinks
Require all granted
php_value max_execution_time 300
php_value memory_limit 128M
php_value post_max_size 16M
php_value upload_max_filesize 2M
php_value max_input_time 300
php_value date.timezone Europe/Stockholm
</Directory>
Enable configuration:
a2enconf kibana
service apache2 reload
Access the Kibana web page on http://192.168.1.203/kibana
If you haven't configure Logstash yet you should see an empty page! :-)