Hacker News new | ask | show | jobs
by willejs 3812 days ago
Thats exactly what i was doing with the elasticsearch plugin for logstash, but i still couldent figure out how to auth vanilla http requests to it from kibana or the like... Then i decided id wasted way too much time on this, and would just build it myself. Other services such as bonzai support basic auth which i would have almost preferred :/
2 comments

I was able to use the code mentioned in this AWS forum post to configure a proxy using node.js: https://forums.aws.amazon.com/thread.jspa?threadID=218214

Code: https://gist.github.com/nakedible-p/ad95dfb1c16e75af1ad5

Looks like it's been turned into an NPM-installable module too: https://github.com/santthosh/aws-es-kibana

We're using this logstash output plugin at the moment https://github.com/awslabs/logstash-output-amazon_es together with the instance profile based permission it works as it should.

We are considering switching to the normal logstash-output-es plugin together with a AWS v4 auth signing proxy to make the setup more portable/less tied to AWS. I have a basic signing proxy setup working based on nginx/openresty. If you're interested just let me know.