|
| 1 | +When {security} is enabled, users must log in to {kib} with a valid user ID and |
| 2 | +password. |
| 3 | + |
| 4 | +{kib} also performs some tasks under the covers that require use of the |
| 5 | +built-in `kibana` user. |
| 6 | + |
| 7 | +. Configure {kib} to use the built-in `kibana` user and the password that you |
| 8 | +created: |
| 9 | + |
| 10 | +** If you don't mind having passwords visible in your configuration file, |
| 11 | +uncomment and update the following settings in the `kibana.yml` file in your |
| 12 | +{kib} directory: |
| 13 | ++ |
| 14 | +-- |
| 15 | +TIP: If you installed {kib} using archive distributions (`zip` or |
| 16 | +`tar.gz`), the `kibana.yml` configuration file is in `KIBANA_HOME/config`. If |
| 17 | +you used package distributions (Debian or RPM), it's in `/etc/kibana`. For more |
| 18 | +information, see {kibana-ref}/settings.html[Configuring {kib}]. |
| 19 | + |
| 20 | +For example, add the following settings: |
| 21 | + |
| 22 | +[source,yaml] |
| 23 | +---- |
| 24 | +elasticsearch.username: "kibana" |
| 25 | +elasticsearch.password: "your_password" |
| 26 | +---- |
| 27 | + |
| 28 | +Specify the password that you set with the `elasticsearch-setup-passwords` |
| 29 | +command then save your changes to the file. |
| 30 | +-- |
| 31 | + |
| 32 | +** If you prefer not to put your user ID and password in the `kibana.yml` file, |
| 33 | +store them in a keystore instead. Run the following commands to create the {kib} |
| 34 | +keystore and add the secure settings: |
| 35 | ++ |
| 36 | +-- |
| 37 | +["source","sh",subs="attributes,callouts"] |
| 38 | +---------------------------------------------------------------------- |
| 39 | +./bin/kibana-keystore create |
| 40 | +./bin/kibana-keystore add elasticsearch.username |
| 41 | +./bin/kibana-keystore add elasticsearch.password |
| 42 | +---------------------------------------------------------------------- |
| 43 | +
|
| 44 | +When prompted, specify the `kibana` built-in user and its password for these |
| 45 | +setting values. The settings are automatically applied when you start {kib}. |
| 46 | +To learn more, see {kibana-ref}/secure-settings.html[Secure settings]. |
| 47 | +-- |
| 48 | +
|
| 49 | +. Restart {kib}. For example, if you installed |
| 50 | +{kib} with a `.tar.gz` package, run the following command from the {kib} |
| 51 | +directory: |
| 52 | ++ |
| 53 | +-- |
| 54 | +["source","sh",subs="attributes,callouts"] |
| 55 | +---------------------------------------------------------------------- |
| 56 | +./bin/kibana |
| 57 | +---------------------------------------------------------------------- |
| 58 | +
|
| 59 | +See {kibana-ref}/start-stop.html[Starting and stopping {kib}]. |
| 60 | +-- |
0 commit comments