elasticsearch/docs/reference/setup/install/zip-windows-start.asciidoc
Adam Locke c098af1172
[DOCS] Update enrollment token docs for multi-node configuration (#82829)
* [DOCS] Update enrollment token docs for multi-node configuration

* Update transport.host guidance based on review feedback

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2022-01-20 13:00:57 -05:00

47 lines
No EOL
1.7 KiB
Text

==== Run {es} from the command line
Run the following command to start {es} from the command line:
[source,sh]
----
.\bin\elasticsearch.bat
----
When starting {es} for the first time, security features are enabled and
configured by default. The following security configuration occurs
automatically:
* Authentication and authorization are enabled, and a password is generated for
the `elastic` built-in superuser.
* Certificates and keys for TLS are generated for the transport and HTTP layer,
and TLS is enabled and configured with these keys and certificates.
* An enrollment token is generated for {kib}, which is valid for 30 minutes.
The password for the `elastic` user and the enrollment token for {kib} are
output to your terminal. For example:
:slash: \
include::auto-config-output.asciidoc[]
If you have password-protected the {es} keystore, you will be prompted to
enter the keystore's password. See <<secure-settings>> for more details.
By default {es} prints its logs to the console (`STDOUT`) and to the `<cluster
name>.log` file within the <<path-settings,logs directory>>. {es} logs some
information while it is starting, but after it has finished initializing it
will continue to run in the foreground and won't log anything further until
something happens that is worth recording. While {es} is running you can
interact with it through its HTTP interface which is on port `9200` by default.
To stop {es}, press `Ctrl-C`.
[discrete]
==== Enroll nodes in an existing cluster
// The following include pulls in steps for enrolling nodes in a cluster from
// a security page in the x-pack folder
:slash: \
include::../../../../x-pack/docs/en/security/enroll-nodes.asciidoc[]