Skip to content

Commit a182f40

Browse files
committed
kib
1 parent b8653f9 commit a182f40

28 files changed

+474
-1241
lines changed

deploy-manage/deploy/self-managed.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,4 @@ sub:
77

88
# Self-managed cluster [dependencies-versions]
99

10-
See [Elastic Stack Third-party Dependencices](https://artifacts.elastic.co/reports/dependencies/dependencies-current.md) for the complete list of dependencies for {{es}}.
11-
12-
13-
```sh
14-
{{stack-version}}
15-
```
16-
17-
{{stack-version}}
18-
19-
1. Compares the SHA of the downloaded `.tar.gz` archive and the published checksum, which should output `elasticsearch-<version>-linux-x86_64.tar.gz: OK`.
20-
2. This directory is known as `$ES_HOME`.
10+
See [Elastic Stack third-party dependencies](https://artifacts.elastic.co/reports/dependencies/dependencies-current.md) for the complete list of dependencies for {{es}}.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
If this is the first time you’re starting {{kib}}, this command generates a unique link in your terminal to enroll your {{kib}} instance with {{es}}.
2+
3+
1. In your terminal, click the generated link to open {{kib}} in your browser.
4+
2. In your browser, paste the enrollment token that was generated in the terminal when you started {{es}}, and then click the button to connect your {{kib}} instance with {{es}}.
5+
3. Log in to {{kib}} as the `elastic` user with the password that was generated when you started {{es}}.
6+
7+
::::{note}
8+
If you need to reset the password for the `elastic` user or other built-in users, run the [`elasticsearch-reset-password`](asciidocalypse://docs/elasticsearch/docs/reference/elasticsearch/command-line-tools/reset-password.md) tool. To generate new enrollment tokens for {{kib}} or {{es}} nodes, run the [`elasticsearch-create-enrollment-token`](asciidocalypse://docs/elasticsearch/docs/reference/elasticsearch/command-line-tools/create-enrollment-token.md) tool. These tools are available in the {{es}} `bin` directory.
9+
::::
10+
11+
:::{tip}
12+
{{kib}} won’t enter interactive mode if it detects existing credentials for {{es}} (`elasticsearch.username` and `elasticsearch.password`) or an existing URL for `elasticsearch.hosts`.
13+
14+
In this case, you can enroll {{kib}} in detached mode:
15+
16+
Run the `kibana-setup` tool and pass the generated enrollment token with the `--enrollment-token` parameter.
17+
18+
```sh
19+
bin/kibana-setup --enrollment-token <enrollment-token>
20+
```
21+
:::
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
1. Run the `status` command to get details about the {{{kib}}} service.
2+
3+
```sh
4+
sudo systemctl status kibana
5+
```
6+
7+
8+
In the `status` command output, a URL is shown with:
9+
10+
* A host address to access {{kib}}
11+
* A six digit verification code
12+
13+
For example:
14+
15+
```sh
16+
Kibana has not been configured.
17+
Go to http://<host>:5601/?code=<code> to get started.
18+
```
19+
20+
Make a note of the verification code.
21+
22+
2. Go to the host address.
23+
24+
It can take a minute or two for {{kib}} to start up, so refresh the page if you don’t see a prompt right away.
25+
26+
3. When {{kib}} starts, you’re prompted to provide an enrollment token. Paste in the {{kib}} enrollment token that you generated earlier.
27+
4. Click **Configure Elastic**.
28+
5. If you’re prompted to provide a verification code, copy and paste in the six digit code that was returned by the `status` command. Then, wait for the setup to complete.
29+
6. When you see the **Welcome to Elastic** page, provide the `elastic` as the username and provide the password that you copied from the install command output when you set up your first {{es}} node.
30+
7. Click **Log in**.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
You now have a test {{es}} environment set up. Before you start serious development or go into production with {{es}}, you must do some additional setup:
22

33
* Learn how to [configure {{es}}](/deploy-manage/deploy/self-managed/configure-elasticsearch.md).
4-
* Configure [important {{es}} settings](/deploy-manage/deploy/self-managed/important-settings-configuration.md).
5-
* Configure [important system settings](/deploy-manage/deploy/self-managed/important-system-configuration.md).
4+
* Configure [important {{es}} settings](/deploy-manage/deploy/self-managed/important-settings-configuration.md).
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The latest stable version of {{kib}} can be found on the [Download Kibana](https://elastic.co/downloads/kibana) page. Other versions can be found on the [Past Releases page](https://elastic.co/downloads/past-releases).
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
If your enrollment token has expired, then you can generate a new enrollment token for {{kib}} with the [`elasticsearch-create-enrollment-token`](asciidocalypse://docs/elasticsearch/docs/reference/elasticsearch/command-line-tools/create-enrollment-token.md) tool:
2+
3+
```sh
4+
bin/elasticsearch-create-enrollment-token -s kibana
5+
```
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
mapped_pages:
3+
- https://www.elastic.co/guide/en/kibana/current/access.html
4+
---
5+
6+
# Access {{kib}} [access]
7+
8+
Access {{kib}} through the web application on port 5601.
9+
10+
1. Point your web browser to the machine where you are running {{kib}} and specify the port number. For example, `localhost:5601` or `http://YOURDOMAIN.com:5601`.
11+
12+
To remotely connect to {{kib}}, set [server.host](configure.md#server-host) to a non-loopback address.
13+
14+
2. Log on to your account.
15+
3. Go to the home page, then click **{{kib}}**.
16+
4. To make the {{kib}} page your landing page, click **Make this my landing page**.
17+
18+
## Resources
19+
20+
* [Troubleshoot: Check {{kib}} server status](/troubleshoot/kibana/access.md)
21+
* [Troubleshoot: Error: {{kib}} server is not ready yet](/troubleshoot/kibana/error-server-not-ready.md)

deploy-manage/deploy/self-managed/access.md

Lines changed: 0 additions & 38 deletions
This file was deleted.

deploy-manage/deploy/self-managed/configure-elasticsearch.md

Lines changed: 30 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
22
mapped_pages:
33
- https://www.elastic.co/guide/en/elasticsearch/reference/current/settings.html
4+
applies_to:
5+
deployment:
6+
self:
47
---
58

69
# Configure {{es}} [settings]
@@ -9,8 +12,14 @@ mapped_pages:
912

1013
The configuration files should contain settings which are node-specific (such as `node.name` and paths), or settings which a node requires in order to be able to join a cluster, such as `cluster.name` and `network.host`.
1114

15+
## Available settings
1216

13-
## Config files location [config-files-location]
17+
For a complete list of settings that you can apply to your {{es}} cluster, refer to the [Elasticsearch configuration reference](elasticsearch://reference/elasticsearch/configuration-reference.md).
18+
19+
For a list of settings that must be configured before using your cluster in production, refer to [](/deploy-manage/deploy/self-managed/important-settings-configuration.md).
20+
21+
22+
## Config files [config-files-location]
1423

1524
{{es}} has three configuration files:
1625

@@ -20,15 +29,26 @@ The configuration files should contain settings which are node-specific (such as
2029

2130
These files are located in the config directory, whose default location depends on whether or not the installation is from an archive distribution (`tar.gz` or `zip`) or a package distribution (Debian or RPM packages).
2231

23-
For the archive distributions, the config directory location defaults to `$ES_HOME/config`. The location of the config directory can be changed via the `ES_PATH_CONF` environment variable as follows:
32+
### Archive distributions
33+
34+
For the archive distributions, the config directory location defaults to `$ES_HOME/config`. The location of the config directory can be changed using the `ES_PATH_CONF` environment variable:
2435

2536
```sh
2637
ES_PATH_CONF=/path/to/my/config ./bin/elasticsearch
2738
```
2839

29-
Alternatively, you can `export` the `ES_PATH_CONF` environment variable via the command line or via your shell profile.
40+
Alternatively, you can `export` the `ES_PATH_CONF` environment variable through the command line or through your shell profile.
41+
42+
### Package distributions
43+
44+
For the package distributions, the config directory location defaults to `/etc/elasticsearch`.
45+
46+
The location of the config directory can be changed by setting the `ES_PATH_CONF` environment variable, however, setting the environment variable in your shell is not sufficient. Instead, this variable is sourced from one the following locations:
47+
48+
* Debian: `/etc/default/elasticsearch`
49+
* RPM: `/etc/sysconfig/elasticsearch`
3050

31-
For the package distributions, the config directory location defaults to `/etc/elasticsearch`. The location of the config directory can also be changed via the `ES_PATH_CONF` environment variable, but note that setting this in your shell is not sufficient. Instead, this variable is sourced from `/etc/default/elasticsearch` (for the Debian package) and `/etc/sysconfig/elasticsearch` (for the RPM package). You will need to edit the `ES_PATH_CONF=/etc/elasticsearch` entry in one of these files accordingly to change the config directory location.
51+
You need to edit the `ES_PATH_CONF=/etc/elasticsearch` entry in the relevant file for your package to change the config directory location.
3252

3353

3454
## Config file format [_config_file_format]
@@ -79,15 +99,13 @@ Values for environment variables must be simple strings. Use a comma-separated s
7999
export HOSTNAME="host1,host2"
80100
```
81101

82-
83102
## Cluster and node setting types [cluster-setting-types]
84103

85104
Cluster and node settings can be categorized based on how they are configured:
86105

87-
$$$dynamic-cluster-setting$$$
106+
### Dynamic [dynamic-cluster-setting]
88107

89-
Dynamic
90-
: You can configure and update dynamic settings on a running cluster using the [cluster update settings API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-settings). You can also configure dynamic settings locally on an unstarted or shut down node using `elasticsearch.yml`.
108+
You can configure and update dynamic settings on a running cluster using the [cluster update settings API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-settings). You can also configure dynamic settings locally on an unstarted or shut down node using `elasticsearch.yml`.
91109

92110
Updates made using the cluster update settings API can be *persistent*, which apply across cluster restarts, or *transient*, which reset after a cluster restart. You can also reset transient or persistent settings by assigning them a `null` value using the API.
93111

@@ -100,27 +118,18 @@ If you configure the same setting using multiple methods, {{es}} applies the set
100118

101119
For example, you can apply a transient setting to override a persistent setting or `elasticsearch.yml` setting. However, a change to an `elasticsearch.yml` setting will not override a defined transient or persistent setting.
102120

103-
::::{tip}
104-
If you use {{ech}}, use the [user settings](../elastic-cloud/edit-stack-settings.md) feature to configure all cluster settings. This method lets {{ech}} automatically reject unsafe settings that could break your cluster.
105-
106-
If you run {{es}} on your own hardware, use the [cluster update settings API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-settings) to configure dynamic cluster settings. Only use `elasticsearch.yml` for static cluster settings and node settings. The API doesn’t require a restart and ensures a setting’s value is the same on all nodes.
107-
108-
::::
109-
121+
Use the [cluster update settings API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-settings) to configure dynamic cluster settings. Only use `elasticsearch.yml` for static cluster settings and node settings. The API doesn’t require a restart and ensures a setting’s value is the same on all nodes.
110122

111123
::::{warning}
112124
We no longer recommend using transient cluster settings. Use persistent cluster settings instead. If a cluster becomes unstable, transient settings can clear unexpectedly, resulting in a potentially undesired cluster configuration.
113-
114125
::::
115126

116127

128+
### Static [static-cluster-setting]
117129

118-
$$$static-cluster-setting$$$
119-
120-
Static
121-
: Static settings can only be configured on an unstarted or shut down node using `elasticsearch.yml`.
130+
Static settings can only be configured on an unstarted or shut down node using `elasticsearch.yml`.
122131

123-
Static settings must be set on every relevant node in the cluster.
132+
Static settings must be set on every relevant node in the cluster.
124133

125134

126135

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
mapped_pages:
3+
- https://www.elastic.co/guide/en/kibana/current/settings.html
4+
---
5+
6+
# Configure {{kib}} [settings]
7+
8+
The {{kib}} server reads properties from the `kibana.yml` file on startup.
9+
10+
The location of this file differs depending on how you installed {{kib}}
11+
12+
* **Archive distributions (`.tar.gz` or `.zip`)**: Default location is `$KIBANA_HOME/config`
13+
* **Package distributions (Debian or RPM)**: Default location is `/etc/kibana`
14+
15+
The config directory can be changed using the `KBN_PATH_CONF` environment variable:
16+
17+
```text
18+
KBN_PATH_CONF=/home/kibana/config ./bin/kibana
19+
```
20+
21+
The default host and port settings configure {{kib}} to run on `localhost:5601`. To change this behavior and allow remote users to connect, you need to update your [`server.host`](kibana://reference/configuration-reference/general-settings.md#server-host) and [`server.port`](kibana://reference/configuration-reference/general-settings.md#server-port) settings in the `kibana.yml` file.
22+
23+
In this file, you can also enable SSL and set a variety of other options.
24+
25+
Environment variables can be injected into configuration using `${MY_ENV_VAR}` syntax. By default, configuration validation will fail if an environment variable used in the config file is not present when {{kib}} starts. This behavior can be changed by using a default value for the environment variable, using the `${MY_ENV_VAR:defaultValue}` syntax.
26+
27+
## Available settings
28+
29+
For a complete list of settings that you can apply to {{kib}}, refer to [{{kib}} configuration reference](kibana:///reference/configuration-reference.md).

0 commit comments

Comments
 (0)