atomita / fluent-plugin-aws-elasticsearch-service

This repository is extends of https://github.com/uken/fluent-plugin-elasticsearch/ which made connectable to Amazon Elassticsearch Service using Aws Signers V4. Please check the requirements to connect to Amazon Elassticsearch Service without using Aws Signers V4 for before starting use. (reference https://groups.google.com/forum/#!msg/fluentd/uW87VAOqxeE/cfhenicEBAAJ)
MIT License
122 stars 49 forks source link

Passing custom headers #40

Closed gvishnutej closed 5 years ago

gvishnutej commented 6 years ago

Hi, Is there a config to pass custom request headers to elastic search? I need to pass API key as a request header to elastic search api gateway.

Thanks, Vishnu Tej

cosmo0920 commented 5 years ago

fluent-plugin-elasticsearch v3.1.1 and fluent-plugin-aws-elasticsearch-service v2.0.0 support custom headers.

Here is an example to use custom headers:

custom_headers {"token":"value"}
cosmo0920 commented 5 years ago

Already supported in based ES plugin. Closing.