snippetbashTip
elasticsearch-keystore — Manage secure settings (e.g., passwords, tokens, and credentials) used by Elasticsearch. More inform
Viewed 0 times
commandtokenssecureclimanageelasticsearch-keystoresettingspasswords
Problem
How to use the
elasticsearch-keystore command: Manage secure settings (e.g., passwords, tokens, and credentials) used by Elasticsearch. More information: <https://www.elastic.co/docs/reference/elasticsearch/command-line-tools/elasticsearch-keystore>.Solution
elasticsearch-keystore — Manage secure settings (e.g., passwords, tokens, and credentials) used by Elasticsearch. More information: <https://www.elastic.co/docs/reference/elasticsearch/command-line-tools/elasticsearch-keystore>.Create a new keystore (not password-protected):
elasticsearch-keystore createCreate a new password-protected keystore:
elasticsearch-keystore create -pAdd a setting interactively:
elasticsearch-keystore add {{setting_name}}Add a setting from
stdin:echo "{{setting_value}}" | elasticsearch-keystore add --stdin {{setting_name}}Remove a setting from the keystore:
elasticsearch-keystore remove {{setting_name}}Change the keystore password:
elasticsearch-keystore passwdList all settings stored in the keystore:
elasticsearch-keystore listUpgrade the keystore format (after an Elasticsearch upgrade):
elasticsearch-keystore upgradeCode Snippets
Create a new keystore (not password-protected)
elasticsearch-keystore createCreate a new password-protected keystore
elasticsearch-keystore create -pAdd a setting interactively
elasticsearch-keystore add {{setting_name}}Add a setting from `stdin`
echo "{{setting_value}}" | elasticsearch-keystore add --stdin {{setting_name}}Remove a setting from the keystore
elasticsearch-keystore remove {{setting_name}}Context
tldr-pages: common/elasticsearch-keystore
Revisions (0)
No revisions yet.