Closed ranajit-jana closed 4 years ago
<match es.**> @type "aws-elasticsearch-service" type_name "access_log" logstash_format true include_tag_key true tag_key "@log_name" flush_interval 1s index_name customname <endpoint> url "#{ENV['AWS_ES_CLUSTER_ENDPOINT']}" region "#{ENV['AWS_ES_CLUSTER_REGION']}" access_key_id "#{ENV['AWS_ES_USER_ACCESS_KEY']}" secret_access_key "#{ENV['AWS_ES_USER_SECRET_KEY']}" </endpoint> </match>
This is wrong usage of index_name
.
When specifying logstash_format
as true, you should set up logstash_prefix customname
for changing logstash style indices prefix name.
See: https://github.com/uken/fluent-plugin-elasticsearch#logstash_format
Pardon my ignorance. Suggested changes are working. Thank you for pointing to right direction
specifying index name
In the project below we are able to specify index name
https://github.com/fluent/fluentd-kubernetes-daemonset/blob/master/docker-image/v1.9/debian-elasticsearch7/conf/fluent.conf
I tried to specify the index name in the same lines
but index-name is not taking effect.
Steps to replicate
The index is logstash- but i wanted it to be customname-
Expected Behavior or What you need to ask
... Index in aws-es to be customname-*
Using Fluentd and ES plugin versions