Curling ElasticSearch API using logstash keystore credentials

Is it possible to call Elasticsearch API requests with the Logstash Keystore credentials that are stored (If they obviously are the right username/password/etc...).

I know API/curl calls can be done utilizing Username password or API Keys but what about from the Logstash server directory if they have a filled out keystore.

what would be the syntax?

Welcome to our community! :smiley:

Do you mean you want to run a curl and then use the details in the keystore?

I actually want to use the keystore values as the credentials used to run the curl against the API.

Something like

curl -u {$ElasticUser}:{$ElasticPassword} https://ElasticURL

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.