pinojs / pino-elasticsearch

🌲 load pino logs into Elasticsearch
MIT License
179 stars 67 forks source link

How to use with an elastic APIKey? #55

Open chill-cod3r opened 4 years ago

chill-cod3r commented 4 years ago

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

mcollina commented 4 years ago

cc @delvedor

delvedor commented 4 years ago

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? :)

chill-cod3r commented 4 years ago

Okay sure thing, I'd be happy to.

chill-cod3r commented 4 years ago

@delvedor @mcollina Pull request is up 😄