2016-10-25 03:41:32 +02:00
|
|
|
[[rpm]]
|
2020-06-09 01:15:20 +02:00
|
|
|
=== Install {kib} with RPM
|
2020-06-10 20:01:19 +02:00
|
|
|
++++
|
|
|
|
<titleabbrev>Install with RPM</titleabbrev>
|
|
|
|
++++
|
|
|
|
|
2016-10-25 03:41:32 +02:00
|
|
|
|
|
|
|
The RPM for Kibana can be <<install-rpm,downloaded from our website>>
|
2018-04-25 08:14:33 +02:00
|
|
|
or from our <<rpm-repo,RPM repository>>. It can be used to install
|
2016-10-25 03:41:32 +02:00
|
|
|
Kibana on any RPM-based system such as OpenSuSE, SLES, Centos, Red Hat,
|
|
|
|
and Oracle Enterprise.
|
|
|
|
|
|
|
|
NOTE: RPM install is not supported on distributions with old versions of RPM,
|
|
|
|
such as SLES 11 and CentOS 5. Please see <<targz>> instead.
|
|
|
|
|
2021-02-05 17:39:03 +01:00
|
|
|
This package contains both free and subscription features.
|
|
|
|
<<managing-licenses,Start a 30-day trial>> to try out all of the features.
|
2018-04-25 08:14:33 +02:00
|
|
|
|
2016-10-25 03:41:32 +02:00
|
|
|
The latest stable version of Kibana can be found on the
|
|
|
|
link:/downloads/kibana[Download Kibana] page. Other versions can
|
|
|
|
be found on the link:/downloads/past-releases[Past Releases page].
|
|
|
|
|
|
|
|
[[rpm-key]]
|
2020-06-09 01:15:20 +02:00
|
|
|
==== Import the Elastic PGP key
|
2016-10-25 03:41:32 +02:00
|
|
|
|
|
|
|
include::key.asciidoc[]
|
|
|
|
|
|
|
|
[source,sh]
|
|
|
|
-------------------------
|
|
|
|
rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
|
|
|
|
-------------------------
|
|
|
|
|
|
|
|
[[rpm-repo]]
|
|
|
|
==== Installing from the RPM repository
|
|
|
|
|
|
|
|
ifeval::["{release-state}"=="unreleased"]
|
|
|
|
|
|
|
|
Version {version} of Kibana has not yet been released.
|
|
|
|
|
|
|
|
endif::[]
|
|
|
|
|
|
|
|
ifeval::["{release-state}"!="unreleased"]
|
|
|
|
|
|
|
|
Create a file called `kibana.repo` in the `/etc/yum.repos.d/` directory
|
|
|
|
for RedHat based distributions, or in the `/etc/zypp/repos.d/` directory for
|
|
|
|
OpenSuSE based distributions, containing:
|
|
|
|
|
|
|
|
ifeval::["{release-state}"=="released"]
|
|
|
|
|
|
|
|
["source","sh",subs="attributes,callouts"]
|
|
|
|
--------------------------------------------------
|
|
|
|
[kibana-{major-version}]
|
|
|
|
name=Kibana repository for {major-version} packages
|
2016-10-25 15:49:42 +02:00
|
|
|
baseurl=https://artifacts.elastic.co/packages/{major-version}/yum
|
2016-10-25 03:41:32 +02:00
|
|
|
gpgcheck=1
|
|
|
|
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
|
|
|
|
enabled=1
|
|
|
|
autorefresh=1
|
|
|
|
type=rpm-md
|
|
|
|
--------------------------------------------------
|
|
|
|
|
|
|
|
endif::[]
|
|
|
|
|
|
|
|
ifeval::["{release-state}"=="prerelease"]
|
|
|
|
|
|
|
|
["source","sh",subs="attributes,callouts"]
|
|
|
|
--------------------------------------------------
|
|
|
|
[kibana-{major-version}]
|
|
|
|
name=Kibana repository for {major-version} packages
|
2016-10-25 15:49:42 +02:00
|
|
|
baseurl=https://artifacts.elastic.co/packages/{major-version}-prerelease/yum
|
2016-10-25 03:41:32 +02:00
|
|
|
gpgcheck=1
|
|
|
|
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
|
|
|
|
enabled=1
|
|
|
|
autorefresh=1
|
|
|
|
type=rpm-md
|
|
|
|
--------------------------------------------------
|
|
|
|
|
|
|
|
endif::[]
|
|
|
|
|
|
|
|
And your repository is ready for use. You can now install Kibana with one of the following commands:
|
|
|
|
|
|
|
|
[source,sh]
|
|
|
|
--------------------------------------------------
|
|
|
|
sudo yum install kibana <1>
|
|
|
|
sudo dnf install kibana <2>
|
|
|
|
sudo zypper install kibana <3>
|
|
|
|
--------------------------------------------------
|
|
|
|
<1> Use `yum` on CentOS and older Red Hat based distributions.
|
|
|
|
<2> Use `dnf` on Fedora and other newer Red Hat distributions.
|
|
|
|
<3> Use `zypper` on OpenSUSE based distributions
|
|
|
|
|
|
|
|
endif::[]
|
|
|
|
|
|
|
|
[[install-rpm]]
|
|
|
|
==== Download and install the RPM manually
|
|
|
|
|
|
|
|
ifeval::["{release-state}"=="unreleased"]
|
|
|
|
|
|
|
|
Version {version} of Kibana has not yet been released.
|
|
|
|
|
|
|
|
endif::[]
|
|
|
|
|
|
|
|
ifeval::["{release-state}"!="unreleased"]
|
|
|
|
|
|
|
|
The RPM for Kibana v{version} can be downloaded from the website and installed as follows:
|
|
|
|
|
|
|
|
["source","sh",subs="attributes"]
|
|
|
|
--------------------------------------------
|
2016-10-26 03:40:37 +02:00
|
|
|
wget https://artifacts.elastic.co/downloads/kibana/kibana-{version}-x86_64.rpm
|
2018-04-03 17:13:53 +02:00
|
|
|
shasum -a 512 kibana-{version}-x86_64.rpm <1>
|
2016-10-26 03:40:37 +02:00
|
|
|
sudo rpm --install kibana-{version}-x86_64.rpm
|
2016-10-25 03:41:32 +02:00
|
|
|
--------------------------------------------
|
2018-04-03 17:13:53 +02:00
|
|
|
<1> Compare the SHA produced by `shasum` with the
|
|
|
|
https://artifacts.elastic.co/downloads/kibana/kibana-{version}-x86_64.rpm.sha512[published SHA].
|
2016-10-26 03:40:37 +02:00
|
|
|
|
2016-10-25 03:41:32 +02:00
|
|
|
endif::[]
|
|
|
|
|
2018-07-03 20:30:08 +02:00
|
|
|
==== SysV `init` vs `systemd`
|
|
|
|
|
2016-10-25 03:41:32 +02:00
|
|
|
include::init-systemd.asciidoc[]
|
|
|
|
|
|
|
|
[[rpm-running-init]]
|
2018-07-03 20:30:08 +02:00
|
|
|
include::rpm-init.asciidoc[]
|
2016-10-25 03:41:32 +02:00
|
|
|
|
|
|
|
[[rpm-running-systemd]]
|
|
|
|
include::systemd.asciidoc[]
|
|
|
|
|
|
|
|
[[rpm-configuring]]
|
2020-06-09 01:15:20 +02:00
|
|
|
==== Configure {kib} via the config file
|
2016-10-25 03:41:32 +02:00
|
|
|
|
|
|
|
Kibana loads its configuration from the `/etc/kibana/kibana.yml`
|
|
|
|
file by default. The format of this config file is explained in
|
2017-07-18 23:41:06 +02:00
|
|
|
{kibana-ref}/settings.html[Configuring Kibana].
|
2016-10-25 03:41:32 +02:00
|
|
|
|
|
|
|
[[rpm-layout]]
|
|
|
|
==== Directory layout of RPM
|
|
|
|
|
|
|
|
The RPM places config files, logs, and the data directory in the appropriate
|
|
|
|
locations for an RPM-based system:
|
|
|
|
|
|
|
|
|
|
|
|
[cols="<h,<,<m,<m",options="header",]
|
|
|
|
|=======================================================================
|
|
|
|
| Type | Description | Default Location | Setting
|
|
|
|
| home
|
|
|
|
| Kibana home directory or `$KIBANA_HOME`
|
|
|
|
| /usr/share/kibana
|
|
|
|
d|
|
|
|
|
|
|
|
|
| bin
|
|
|
|
| Binary scripts including `kibana` to start the Kibana server
|
|
|
|
and `kibana-plugin` to install plugins
|
|
|
|
| /usr/share/kibana/bin
|
|
|
|
d|
|
|
|
|
|
|
|
|
| config
|
|
|
|
| Configuration files including `kibana.yml`
|
|
|
|
| /etc/kibana
|
2021-02-10 17:01:49 +01:00
|
|
|
| <<settings,KBN_PATH_CONF>>
|
2016-10-25 03:41:32 +02:00
|
|
|
d|
|
|
|
|
|
|
|
|
| data
|
|
|
|
| The location of the data files written to disk by Kibana and its plugins
|
|
|
|
| /var/lib/kibana
|
2017-08-31 17:16:50 +02:00
|
|
|
| path.data
|
2020-06-09 01:15:20 +02:00
|
|
|
|
2019-09-18 18:26:21 +02:00
|
|
|
| logs
|
|
|
|
| Logs files location
|
|
|
|
| /var/log/kibana
|
|
|
|
| path.logs
|
2016-10-25 03:41:32 +02:00
|
|
|
|
|
|
|
| plugins
|
|
|
|
| Plugin files location. Each plugin will be contained in a subdirectory.
|
|
|
|
| /usr/share/kibana/plugins
|
|
|
|
d|
|
|
|
|
|
|
|
|
|=======================================================================
|