syskeygen.asciidoc 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. [[syskeygen]]
  2. == elasticsearch-syskeygen
  3. The `elasticsearch-syskeygen` command creates a system key file in the
  4. elasticsearch config directory.
  5. [discrete]
  6. === Synopsis
  7. [source,shell]
  8. --------------------------------------------------
  9. bin/elasticsearch-syskeygen
  10. [-E <KeyValuePair>] [-h, --help]
  11. ([-s, --silent] | [-v, --verbose])
  12. --------------------------------------------------
  13. [discrete]
  14. === Description
  15. The command generates a `system_key` file, which you can use to symmetrically
  16. encrypt sensitive data. For example, you can use this key to prevent {watcher}
  17. from returning and storing information that contains clear text credentials. See
  18. <<encrypting-data>>.
  19. IMPORTANT: The system key is a symmetric key, so the same key must be used on
  20. every node in the cluster.
  21. [discrete]
  22. [[syskeygen-parameters]]
  23. === Parameters
  24. `-E <KeyValuePair>`:: Configures a setting. For example, if you have a custom
  25. installation of {es}, you can use this parameter to specify the `ES_PATH_CONF`
  26. environment variable.
  27. `-h, --help`:: Returns all of the command parameters.
  28. `-s, --silent`:: Shows minimal output.
  29. `-v, --verbose`:: Shows verbose output.
  30. [discrete]
  31. === Examples
  32. The following command generates a `system_key` file in the
  33. default `$ES_HOME/config` directory:
  34. [source, sh]
  35. --------------------------------------------------
  36. bin/elasticsearch-syskeygen
  37. --------------------------------------------------