FreeBSD 14
Sponsored Link

Elastic Stack 8 : Install Kibana2024/09/18

 

Install Kibana which is the Data Visualization tool for Elasticsearch.

[1]

Get SSL Certificate, or Create self-signed Certificate.
It uses self signed Certificate on this example.

[2] Install Kibana.
root@dlp:~ #
pkg install -y kibana8
root@dlp:~ #
cp /usr/local/etc/ssl/server.crt /usr/local/etc/kibana/

root@dlp:~ #
cp /usr/local/etc/ssl/server.key /usr/local/etc/kibana/

root@dlp:~ #
chown www /usr/local/etc/kibana/server.crt /usr/local/etc/kibana/server.key
# generate an enrollment token for Kibana

root@dlp:~ #
elasticsearch-create-enrollment-token -s kibana

eyJ2ZXIiOiI4LjExLjMiLCJhZHIiOlsiMTAuMC4wLjMwOjkyMDAiXSwiZmdyIjoiZmFiYzMxY2Q4MDVkOGE2YjQ0ZGViZTI1ZmIyYjEyYjY4NjM1MjljNjBjZWQwZjI0YTJiZTEzYzczOTVmYjE1MCIsImtleSI6IjJqektBcElCaVBodktHWVBYcEhhOmdnUERNMDFqUjItUzZWbEdaMXJlb2cifQ==

# setup Kibana
root@dlp:~ # kibana-setup --enrollment-token \
eyJ2ZXIiOiI4LjExLjMiLCJhZHIiOlsiMTAuMC4wLjMwOjkyMDAiXSwiZmdyIjoiZmFiYzMxY2Q4MDVkOGE2YjQ0ZGViZTI1ZmIyYjEyYjY4NjM1MjljNjBjZWQwZjI0YTJiZTEzYzczOTVmYjE1MCIsImtleSI6IjJqektBcElCaVBodktHWVBYcEhhOmdnUERNMDFqUjItUzZWbEdaMXJlb2cifQ== 

✓ Kibana configured successfully.

To start Kibana run:
  bin/kibana

root@dlp:~ #
vi /usr/local/etc/kibana/kibana.yml
# line 11 : if access to Kibana from other hosts, uncomment and change (listen all)

server.host: "
0.0.0.0
"
# line 26 : uncomment and specify the public URL of Kibana server

server.publicBaseUrl: "
https://dlp.srv.world:5601/
"
# line 32 : uncomment and change to your hostname

server.name: "
dlp.srv.world
"
# line 37-39 : uncomment and change to your certificate

server.ssl.enabled:
true

server.ssl.certificate:
/usr/local/etc/kibana/server.crt

server.ssl.key:
/usr/local/etc/kibana/server.key
root@dlp:~ #
service kibana enable

kibana enabled in /etc/rc.conf
root@dlp:~ #
service kibana start

Starting kibana.
[3] Access to [https://(server's Hostname or IP address):5601/] from any client computer, then Kibana login form is shown. It's possible to login with [elastic] user and password. That's OK if successfully login and Dashboard is shown like follows.
Matched Content