Skip to content

Instantly share code, notes, and snippets.

@Howard-Chang
Last active June 6, 2018 11:57
Show Gist options
  • Save Howard-Chang/7941159d9fc099463b00e681d52af2f1 to your computer and use it in GitHub Desktop.
Save Howard-Chang/7941159d9fc099463b00e681d52af2f1 to your computer and use it in GitHub Desktop.
x-pack
sh users useradd my_admin -p my_password -r superuser
curl -u my_admin -XPUT 'http://163.19.163.239:9200/_xpack/security/user/elastic/_password?pretty' -H 'Content-Type: application/json' -d'
{
"password" : "9ol./;p0"
}'
Enter host password for user 'my_admin':
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment