2015-05-29 00:15:39 +02:00
|
|
|
[[setup-repositories]]
|
2016-08-31 22:03:54 +02:00
|
|
|
=== Installing Kibana with apt and yum
|
2015-05-29 00:15:39 +02:00
|
|
|
|
2016-08-31 22:03:54 +02:00
|
|
|
Binary packages for Kibana are available for Unix distributions that support the `apt` and `yum` tools.
|
|
|
|
We also have repositories available for APT and YUM based distributions.
|
2015-05-29 00:15:39 +02:00
|
|
|
|
|
|
|
NOTE: Since the packages are created as part of the Kibana build, source packages are not available.
|
|
|
|
|
2016-01-29 22:49:04 +01:00
|
|
|
Packages are signed with the PGP key http://pgp.mit.edu/pks/lookup?op=vindex&search=0xD27D666CD88E42B4[D88E42B4], which
|
2015-05-29 00:15:39 +02:00
|
|
|
has the following fingerprint:
|
|
|
|
|
|
|
|
4609 5ACC 8548 582C 1A26 99A9 D27D 666C D88E 42B4
|
|
|
|
|
|
|
|
[float]
|
|
|
|
[[kibana-apt]]
|
|
|
|
===== Installing Kibana with apt-get
|
|
|
|
|
|
|
|
. Download and install the Public Signing Key:
|
|
|
|
+
|
|
|
|
[source,sh]
|
|
|
|
--------------------------------------------------
|
|
|
|
wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
|
|
|
|
--------------------------------------------------
|
|
|
|
+
|
2016-02-23 11:06:28 +01:00
|
|
|
. Add the repository definition to your `/etc/apt/sources.list.d/kibana.list` file:
|
2015-05-29 00:15:39 +02:00
|
|
|
+
|
2016-04-05 01:38:09 +02:00
|
|
|
["source","sh",subs="attributes"]
|
2015-05-29 00:15:39 +02:00
|
|
|
--------------------------------------------------
|
2016-06-07 21:35:48 +02:00
|
|
|
echo "deb https://packages.elastic.co/kibana/{packageversion}/debian stable main" | sudo tee -a /etc/apt/sources.list.d/kibana.list
|
2015-05-29 00:15:39 +02:00
|
|
|
--------------------------------------------------
|
|
|
|
+
|
|
|
|
[WARNING]
|
|
|
|
==================================================
|
2016-04-02 20:36:04 +02:00
|
|
|
Use the `echo` method described above to add the Kibana repository. Do not use `add-apt-repository`, as that command
|
2015-05-29 00:15:39 +02:00
|
|
|
adds a `deb-src` entry with no corresponding source package.
|
2016-04-02 20:36:04 +02:00
|
|
|
|
|
|
|
When the `deb-src` entry is present, the commands in this procedure generate an error similar to the following:
|
2015-05-29 00:15:39 +02:00
|
|
|
|
|
|
|
Unable to find expected entry 'main/source/Sources' in Release file (Wrong sources.list entry or malformed file)
|
|
|
|
|
2016-02-26 17:24:38 +01:00
|
|
|
Delete the `deb-src` entry from the `/etc/apt/sources.list.d/kibana.list` file to clear the error.
|
2015-05-29 00:15:39 +02:00
|
|
|
==================================================
|
|
|
|
+
|
2016-04-02 20:36:04 +02:00
|
|
|
. Run `apt-get update` to ready the repository. Install Kibana with the following command:
|
2015-05-29 00:15:39 +02:00
|
|
|
+
|
|
|
|
[source,sh]
|
|
|
|
--------------------------------------------------
|
|
|
|
sudo apt-get update && sudo apt-get install kibana
|
|
|
|
--------------------------------------------------
|
|
|
|
+
|
2016-01-29 22:49:04 +01:00
|
|
|
. Configure Kibana to automatically start during bootup. If your distribution is using the System V version of `init`,
|
2015-05-29 00:15:39 +02:00
|
|
|
run the following command:
|
|
|
|
+
|
|
|
|
[source,sh]
|
|
|
|
--------------------------------------------------
|
|
|
|
sudo update-rc.d kibana defaults 95 10
|
|
|
|
--------------------------------------------------
|
|
|
|
+
|
|
|
|
. If your distribution is using `systemd`, run the following commands instead:
|
|
|
|
+
|
|
|
|
[source,sh]
|
|
|
|
--------------------------------------------------
|
|
|
|
sudo /bin/systemctl daemon-reload
|
|
|
|
sudo /bin/systemctl enable kibana.service
|
|
|
|
--------------------------------------------------
|
|
|
|
|
|
|
|
[float]
|
|
|
|
[[kibana-yum]]
|
|
|
|
===== Installing Kibana with yum
|
|
|
|
|
2016-01-29 22:49:04 +01:00
|
|
|
WARNING: The repositories set up in this procedure are not compatible with distributions using version 3 of `rpm`, such
|
2015-05-29 00:15:39 +02:00
|
|
|
as CentOS version 5.
|
|
|
|
|
|
|
|
. Download and install the public signing key:
|
|
|
|
+
|
|
|
|
[source,sh]
|
|
|
|
--------------------------------------------------
|
|
|
|
rpm --import https://packages.elastic.co/GPG-KEY-elasticsearch
|
|
|
|
--------------------------------------------------
|
|
|
|
+
|
|
|
|
. Create a file named `kibana.repo` in the `/etc/yum.repos.d/` directory with the following contents:
|
|
|
|
+
|
2016-04-02 20:36:04 +02:00
|
|
|
["source","sh",subs="attributes"]
|
2015-05-29 00:15:39 +02:00
|
|
|
--------------------------------------------------
|
2016-06-07 21:35:48 +02:00
|
|
|
[kibana-{packageversion}]
|
|
|
|
name=Kibana repository for {packageversion} packages
|
|
|
|
baseurl=https://packages.elastic.co/kibana/{packageversion}/centos
|
2015-05-29 00:15:39 +02:00
|
|
|
gpgcheck=1
|
2016-06-07 21:27:11 +02:00
|
|
|
gpgkey=https://packages.elastic.co/GPG-KEY-elasticsearch
|
2015-05-29 00:15:39 +02:00
|
|
|
enabled=1
|
|
|
|
--------------------------------------------------
|
|
|
|
+
|
|
|
|
. Install Kibana by running the following command:
|
|
|
|
+
|
|
|
|
[source,sh]
|
|
|
|
--------------------------------------------------
|
|
|
|
yum install kibana
|
|
|
|
--------------------------------------------------
|
|
|
|
+
|
2016-01-29 22:49:04 +01:00
|
|
|
Configure Kibana to automatically start during bootup. If your distribution is using the System V version of `init`
|
|
|
|
(check with `ps -p 1`), run the following command:
|
2015-05-29 00:15:39 +02:00
|
|
|
+
|
|
|
|
[source,sh]
|
|
|
|
--------------------------------------------------
|
|
|
|
chkconfig --add kibana
|
|
|
|
--------------------------------------------------
|
|
|
|
+
|
|
|
|
. If your distribution is using `systemd`, run the following commands instead:
|
|
|
|
+
|
|
|
|
[source,sh]
|
|
|
|
--------------------------------------------------
|
|
|
|
sudo /bin/systemctl daemon-reload
|
|
|
|
sudo /bin/systemctl enable kibana.service
|
|
|
|
--------------------------------------------------
|