CentOS6 again.
Download the latest version of kibana from http://www.elasticsearch.org/overview/kibana/installation/
cd /var/www/
wget http://www.elasticsearch.org/overview/kibana/installation/
tar zxvf kibana*
rm kibana*.gz
mv kibana* kibana3
Create a kibana configuration file for Apache.
<VirtualHost YOURIP:80>
ServerName FQDN
DocumentRoot /var/www/kibana3
<Directory /var/www/kibana3>
Allow from all
Options -Multiviews
</Directory>
LogLevel debug
ErrorLog /var/log/httpd/error_log
CustomLog /var/log/httpd/access_log combined
# Set global proxy timeouts
<Proxy http://127.0.0.1:9200>
ProxySet connectiontimeout=5 timeout=90
</Proxy>
# Proxy for _aliases and .*/_search
<LocationMatch “^/(_nodes|_aliases|.*/_aliases|_search|.*/_search|_mapping|.*/_mapping)$”>
ProxyPassMatch http://127.0.0.1:9200/$1
ProxyPassReverse http://127.0.0.1:9200/$1
</LocationMatch>
# Proxy for kibana-int/{dashboard,temp} stuff (if you don’t want auth on /, then you will want these to be protected)
<LocationMatch “^/(kibana-int/dashboard/|kibana-int/temp)(.*)$”>
ProxyPassMatch http://127.0.0.1:9200/$1$2
ProxyPassReverse http://127.0.0.1:9200/$1$2
</LocationMatch>
<Location />
AuthType Basic
AuthBasicProvider file
AuthName “Restricted”
AuthUserFile /etc/httpd/conf.d/kibana-htpasswd
Require valid-user
</Location>
</VirtualHost>
Create kibana users for however many users you need.
cd /etc/httpd/conf.d/
htpasswd kibana-htpasswd yourusername
Enter password twice.
Restart apache
service httpd restart
Visit http://IPADDRESS/index.html#/dashboard/file/default.json
0 Comments