2019-10-04 11:19:10 -04:00
|
|
|
When the {es} {security-features} are enabled, users must log in to {kib}
|
2020-04-28 10:30:25 -04:00
|
|
|
with a valid user ID and password.
|
2019-10-04 11:19:10 -04:00
|
|
|
|
2020-04-28 10:30:25 -04:00
|
|
|
{kib} also performs some tasks under the covers that require use of the
|
|
|
|
built-in `kibana_system` user.
|
2019-10-04 11:19:10 -04:00
|
|
|
|
2020-04-28 10:30:25 -04:00
|
|
|
. Configure {kib} to use the built-in `kibana_system` user and the password that you
|
2019-10-04 11:19:10 -04:00
|
|
|
created:
|
|
|
|
|
2020-04-28 10:30:25 -04:00
|
|
|
** If you don't mind having passwords visible in your configuration file,
|
|
|
|
uncomment and update the following settings in the `kibana.yml` file in your
|
2019-10-04 11:19:10 -04:00
|
|
|
{kib} directory:
|
|
|
|
+
|
|
|
|
--
|
2020-04-28 10:30:25 -04:00
|
|
|
TIP: If you installed {kib} using archive distributions (`zip` or
|
|
|
|
`tar.gz`), the `kibana.yml` configuration file is in `KIBANA_HOME/config`. If
|
|
|
|
you used package distributions (Debian or RPM), it's in `/etc/kibana`. For more
|
|
|
|
information, see {kibana-ref}/settings.html[Configuring {kib}].
|
2019-10-04 11:19:10 -04:00
|
|
|
|
|
|
|
For example, add the following settings:
|
|
|
|
|
|
|
|
[source,yaml]
|
|
|
|
----
|
2020-04-28 10:30:25 -04:00
|
|
|
elasticsearch.username: "kibana_system"
|
2019-10-04 11:19:10 -04:00
|
|
|
elasticsearch.password: "your_password"
|
|
|
|
----
|
|
|
|
|
2020-04-28 10:30:25 -04:00
|
|
|
Specify the password that you set with the `elasticsearch-setup-passwords`
|
|
|
|
command then save your changes to the file.
|
2019-10-04 11:19:10 -04:00
|
|
|
--
|
|
|
|
|
2020-04-28 10:30:25 -04:00
|
|
|
** If you prefer not to put your user ID and password in the `kibana.yml` file,
|
|
|
|
store them in a keystore instead. Run the following commands to create the {kib}
|
2019-10-04 11:19:10 -04:00
|
|
|
keystore and add the secure settings:
|
|
|
|
+
|
|
|
|
--
|
|
|
|
// tag::store-kibana-user[]
|
|
|
|
["source","sh",subs="attributes,callouts"]
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
./bin/kibana-keystore create
|
|
|
|
./bin/kibana-keystore add elasticsearch.username
|
|
|
|
./bin/kibana-keystore add elasticsearch.password
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
|
2020-04-28 10:30:25 -04:00
|
|
|
When prompted, specify the `kibana_system` built-in user and its password for these
|
|
|
|
setting values. The settings are automatically applied when you start {kib}.
|
2019-10-04 11:19:10 -04:00
|
|
|
To learn more, see {kibana-ref}/secure-settings.html[Secure settings].
|
|
|
|
// end::store-kibana-user[]
|
|
|
|
--
|
|
|
|
|
2020-04-28 10:30:25 -04:00
|
|
|
. Restart {kib}. For example, if you installed
|
|
|
|
{kib} with a `.tar.gz` package, run the following command from the {kib}
|
2019-10-04 11:19:10 -04:00
|
|
|
directory:
|
|
|
|
+
|
|
|
|
--
|
|
|
|
["source","sh",subs="attributes,callouts"]
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
./bin/kibana
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
|
2020-04-28 10:30:25 -04:00
|
|
|
See {kibana-ref}/start-stop.html[Starting and stopping {kib}].
|
|
|
|
--
|