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

How can I set the _type from the tag? #37

Closed marksawersw closed 6 years ago

marksawersw commented 6 years ago

Hello.

I'd like to send in the _type dynamically based on the tag, as in:

<match **>
@type aws-elasticsearch-service
type_name ${tag}
...
</match>

but literal ${tag} shows in the _type field kibana.

Are there any variables that work there?

Also tried setting the following:

include_tag_key true
tag_key "_type"

but that didn't work.

Suggestions?

Thanks! Mark

cosmo0920 commented 6 years ago

Hi. This is fluent-plugin-elasticsearch plugin's issue. Could you report your issue in fluent-plugin-elasticsearch?

marksawersw commented 6 years ago

I see it's been raised in issue 53 and closed with recommendation to use fluent-plugin-forest. I'll try that.

cosmo0920 commented 6 years ago

For v0.12, it is correct. For v0.14, this should treat as a bug of fluent-plugin-elasticsearch.

marksawersw commented 6 years ago

Ok I've opened Issue 330 on the base project.