When I generate elastic I got a password which includes quotes. ( like 'xxxxx"xxxx' )
This is hard to use in code (C#) so I like to change the password.
But there I get exception because the quotes too. How can I change the password with quotes in it?
doing:
POST /_security/user/elastic/_password
{
"xxxxx\"xxxx" : "secret"
}
You mean the auto generated password that you get on first run ? This should not happen as we would not include these characters in the generated password. Are you certain that this is the password ?
In any case you can reset the password for the elastic user if you have access to the file system of the node by running bin/elastisearch-reset-password without passing the existing password as a parameter
It looks like your cluster is not Green and your cannot interact with it until you fix that first. The elasticsearch.log file would contain pointers as to what is wrong with your cluster. Please take a look there.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.