You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: deploy-manage/deploy/self-managed.md
+1-11Lines changed: 1 addition & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,14 +7,4 @@ sub:
7
7
8
8
# Self-managed cluster [dependencies-versions]
9
9
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}}.
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.
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, waitfor 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.
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:
2
2
3
3
* Learn how to [configure {{es}}](/deploy-manage/deploy/self-managed/configure-elasticsearch.md).
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).
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:
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)
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`.
11
14
15
+
## Available settings
12
16
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]
14
23
15
24
{{es}} has three configuration files:
16
25
@@ -20,15 +29,26 @@ The configuration files should contain settings which are node-specific (such as
20
29
21
30
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).
22
31
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:
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`
30
50
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.
32
52
33
53
34
54
## Config file format [_config_file_format]
@@ -79,15 +99,13 @@ Values for environment variables must be simple strings. Use a comma-separated s
79
99
export HOSTNAME="host1,host2"
80
100
```
81
101
82
-
83
102
## Cluster and node setting types [cluster-setting-types]
84
103
85
104
Cluster and node settings can be categorized based on how they are configured:
86
105
87
-
$$$dynamic-cluster-setting$$$
106
+
### Dynamic [dynamic-cluster-setting]
88
107
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`.
91
109
92
110
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.
93
111
@@ -100,27 +118,18 @@ If you configure the same setting using multiple methods, {{es}} applies the set
100
118
101
119
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.
102
120
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.
110
122
111
123
::::{warning}
112
124
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
-
114
125
::::
115
126
116
127
128
+
### Static [static-cluster-setting]
117
129
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`.
122
131
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.
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