fluentd-kubernetes-daemonset icon indicating copy to clipboard operation
fluentd-kubernetes-daemonset copied to clipboard

Add support for AWS Elasticsearch

Open jicowan opened this issue 6 years ago • 10 comments

Update image with the fluent-plugin-aws-elasticsearch-service gem, https://github.com/atomita/fluent-plugin-aws-elasticsearch-service which allows you to specify an IAM access key/secret key for an IAM account to write to ES.

jicowan avatar Dec 23 '18 22:12 jicowan

not a ruby expert, hope someone can do this and make fluntd to aws es be eaiser.

hixichen avatar Jan 08 '19 01:01 hixichen

I'm currently working on that part for my current setup. @repeatedly would you prefer that to be a brand new image or just add it as an option to the existing debian-elasticsearch one?

aerostitch avatar Mar 14 '19 17:03 aerostitch

Actually, I deployed the aws elasticsearch proxy service inside k8s cluster. And, use fluent-bit/fluent-d to publish data to proxy service. I checked the atomita's plugin but feel no one maintain that for a long time.

hixichen avatar Mar 14 '19 17:03 hixichen

Interesting. Are you talking about https://github.com/abutaha/aws-es-proxy ?

I've been using the atomia plugin for a very long time outside of that project and am currently migrating to using this project, just adding the gem from https://github.com/atomita/fluent-plugin-aws-elasticsearch-service . There's been some activity on it lately thanks to @cosmo0920 .

aerostitch avatar Mar 14 '19 17:03 aerostitch

@aerostitch
Yes. container image: abutaha/aws-es-proxy:0.9

hixichen avatar Mar 14 '19 18:03 hixichen

@hixichen @aerostitch would love to hear more about the aws-es-proxy and any issues you've run into doing so.

Would ideally be best if the stable helm chart https://github.com/kiwigrid/helm-charts/tree/master/charts/fluentd-elasticsearch ? had a way to do this setup or similar.

But still - would rather hear first hand from others who've done it the issues they've faced.. reliability.. scaling.. gotchas.. etc

nukepuppy avatar Apr 12 '19 17:04 nukepuppy

I tried the https://github.com/abutaha/aws-es-proxy but it does not seem ready for production. It has 13 open issues at the moment, 2 of which are deal killers for me: it fails to pass along 403 or 302 responses. When it encounters those responses from upstream (Elasticsearch or Kibana), it sends an empty 200 response downstream. That is a big problem, especially for Kibana.

So I tried using the mozilla-services proxy proxy instead, as it seems to be in much better shape than the other one, is very easy to configure, and the whole Docker image is only 11 MB. Unfortunately, while it handles 403 and 302 status codes fine, it drops the Content-Type header, which makes it completely unsuitable for use with Elasticsearch, which requires the Content-Type header (as of version 6.0).

Until one of these proxies get fixed, or a better one comes along, it would be very helpful to have https://github.com/atomita/fluent-plugin-aws-elasticsearch-service installed and available on the elasticsearch Docker images.

Nuru avatar May 11 '19 01:05 Nuru

Hi Team. Is there solution for this ? Thanks in advance.

esteban1983cl avatar May 15 '19 14:05 esteban1983cl

See https://github.com/fluent/fluentd-kubernetes-daemonset/pull/317

AdrienKuhn avatar Jun 04 '19 18:06 AdrienKuhn

See #317

Thanks bro... I'll test and comment any issue

Dolape1983 avatar Jun 04 '19 18:06 Dolape1983