原英文版地址: https://www.elastic.co/guide/en/elasticsearch/reference/7.7/syskeygen.html, 原文档版权归 www.elastic.co 所有
本地英文版地址: ../en/syskeygen.html
本地英文版地址: ../en/syskeygen.html
重要: 此版本不会发布额外的bug修复或文档更新。最新信息请参考 当前版本文档。
elasticsearch-syskeygenedit
The elasticsearch-syskeygen
command creates a system key file in the
elasticsearch config directory.
Synopsisedit
bin/elasticsearch-syskeygen [-E <KeyValuePair>] [-h, --help] ([-s, --silent] | [-v, --verbose])
Descriptionedit
The command generates a system_key
file, which you can use to symmetrically
encrypt sensitive data. For example, you can use this key to prevent Watcher
from returning and storing information that contains clear text credentials. See
Encrypting sensitive data in Watcher.
The system key is a symmetric key, so the same key must be used on every node in the cluster.
Parametersedit
-
-E <KeyValuePair>
-
Configures a setting. For example, if you have a custom
installation of Elasticsearch, you can use this parameter to specify the
ES_PATH_CONF
environment variable. -
-h, --help
- Returns all of the command parameters.
-
-s, --silent
- Shows minimal output.
-
-v, --verbose
- Shows verbose output.
Examplesedit
The following command generates a system_key
file in the
default $ES_HOME/config
directory:
bin/elasticsearch-syskeygen