[DOCS] Updates security API examples (#10752) (#11660)

This commit is contained in:
Lisa Cawley 2020-03-05 16:56:59 -08:00 committed by GitHub
parent b7a5f76859
commit 229487c38e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -210,17 +210,8 @@ monitoring function, and _should not_ be used for any other purpose - it is
specifically _not intended_ for use within a Logstash pipeline.
By default, the `logstash_system` user does not have a password. The user will
not be enabled until you set a password. Set the password through the change
password API:
[source,js]
---------------------------------------------------------------------
PUT _xpack/security/user/logstash_system/_password
{
"password": "t0p.s3cr3t"
}
---------------------------------------------------------------------
// CONSOLE
not be enabled until you set a password. See
{ref}/built-in-users.html#set-built-in-user-passwords[Setting built-in user passwords].
Then configure the user and password in the `logstash.yml` configuration file:
@ -230,7 +221,7 @@ xpack.monitoring.elasticsearch.username: logstash_system
xpack.monitoring.elasticsearch.password: t0p.s3cr3t
----------------------------------------------------------
If you initially installed an older version of {xpack}, and then upgraded, the
If you initially installed an older version of {xpack} and then upgraded, the
`logstash_system` user may have defaulted to `disabled` for security reasons.
You can enable the user through the `user` API: