pino-elasticsearch icon indicating copy to clipboard operation
pino-elasticsearch copied to clipboard

How to use with an elastic APIKey?

Open chill-cod3r opened this issue 5 years ago • 4 comments

I only see support for the basic user:pass in the url auth mechanism. Is there an example showing how to use an apikey auth mechanism instead? For example, getting this data to the client:

https://www.elastic.co/guide/en/cloud/current/ec_connect_a_client.html#ec_api_key

chill-cod3r avatar Jun 17 '20 18:06 chill-cod3r

cc @delvedor

mcollina avatar Jun 18 '20 12:06 mcollina

You are right, currently you can’t pass an api key. It would be nice to expose it as the client does support it. Would you like to send a pr? :)

delvedor avatar Jun 19 '20 14:06 delvedor

Okay sure thing, I'd be happy to.

chill-cod3r avatar Jun 19 '20 16:06 chill-cod3r

@delvedor @mcollina Pull request is up 😄

chill-cod3r avatar Jun 20 '20 09:06 chill-cod3r