Browse Source

[DOCS] Improve docs for 'elasticsearch-keystore add-file' command (#41084)

James Rodewig 6 years ago
parent
commit
a967dde340

+ 1 - 1
docs/plugins/repository-gcs.asciidoc

@@ -152,7 +152,7 @@ Some settings are sensitive and must be stored in the
 
 [source,sh]
 ----
-bin/elasticsearch-keystore add-file gcs.client.default.credentials_file
+bin/elasticsearch-keystore add-file gcs.client.default.credentials_file /path/service-account.json
 ----
 
 The following are the available client settings. Those that must be stored in the keystore

+ 12 - 0
docs/reference/setup/secure-settings.asciidoc

@@ -64,6 +64,18 @@ through stdin, use the `--stdin` flag:
 cat /file/containing/setting/value | bin/elasticsearch-keystore add --stdin the.setting.name.to.set
 ----------------------------------------------------------------
 
+[float]
+[[add-file-to-keystore]]
+=== Adding file settings
+You can add sensitive files, like authentication key files for cloud plugins,
+using the `add-file` command. Be sure to include your file path as an argument
+after the setting name.
+
+[source,sh]
+----------------------------------------------------------------
+bin/elasticsearch-keystore add-file the.setting.name.to.set /path/example-file.json
+----------------------------------------------------------------
+
 [float]
 [[remove-settings]]
 === Removing settings