LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

elasticsearch-create-enrollment-token

Generate enrollment tokens for nodes and Kibana

TLDR

Create token for new node
$ elasticsearch-create-enrollment-token -s node
copy
Create token for Kibana
$ elasticsearch-create-enrollment-token -s kibana
copy
Specify URL
$ elasticsearch-create-enrollment-token -s node --url [https://localhost:9200]
copy

SYNOPSIS

elasticsearch-create-enrollment-token -s scope [options]

DESCRIPTION

elasticsearch-create-enrollment-token generates enrollment tokens used to add new Elasticsearch nodes to an existing cluster or to configure a Kibana instance to communicate with a security-enabled cluster.Tokens are short-lived and expire 30 minutes after they are generated. The command must be run from the Elasticsearch installation directory (typically `bin/elasticsearch-create-enrollment-token`).

PARAMETERS

-s, --scope scope

Scope of the generated token: `node` or `kibana`.
--url url
Base URL (hostname and port) used to submit API requests. Defaults to the value derived from elasticsearch.yml.
-f, --force
Force the command to run against an unhealthy cluster.
-E setting=value
Configure the specified Elasticsearch setting for the duration of the command.
-h, --help
Display help information.

CAVEATS

Only works with clusters that were auto-configured for security (the default in Elasticsearch 8.0 and later). Generated tokens expire after 30 minutes. Requires a running, healthy node unless `--force` is given.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid