tsaikd / gogstash

Logstash like, written in golang
MIT License
644 stars 106 forks source link

How to log in to elasticsearch #144

Closed helgeolav closed 3 years ago

helgeolav commented 3 years ago

Hi

I am looking into the output module elastic and I can't see a way to send in some kind of authentication. How can I configure a username/password to log into Elasticsearch?

tsaikd commented 3 years ago

Thanks for your PR #143

helgeolav commented 3 years ago

If there is no obvious answer to this I can create a new PR with a solution to this. I seem to need a few more changes to the elastic output as I also need to use the simple client. Behind NAT/Docker etc there are some issues when the client tries to be smart and choose endpoint for itself even without sniff.