# fluentd/conf/fluent.conf
@type record_transformer
app_name ${tag_parts[0]}
service_name ${tag_parts[1]}
image_name ${tag_parts[2]}
@type copy
@type elasticsearch
host elasticsearch
port 9200
logstash_format true
logstash_prefix fluentd
logstash_dateformat %Y%m%d
include_tag_key true
type_name access_log
tag_key @log_name
flush_interval 1s
@type null