2019-01-09 11:45:18 +0100 [info]: parsing config file is succeeded path="/etc/td-agent/td-agent.conf"
2019-01-09 11:45:18 +0100 [error]: config error file="/etc/td-agent/td-agent.conf" error_class=Fluent::ConfigError error="Duplicated plugin id `${tag}`. Check whole configuration and fix it."
My td-agent configuration is :
<source>
@type forward
port 24224
</source>
<match test.app1>
@type copy
<store>
@type prometheus
<metric>
name fluentd_output_status_num_records_total
type counter
desc The total number of outgoing records
<labels>
tag ${tag}
hostname ${hostname}
</labels>
</metric>
</store>
<store>
@type file
@id ${tag}
path /var/log/td-agent/
<buffer>
timekey 1d
timekey_use_utc true
timekey_wait 10m
</buffer>
</store>
</match>
<match test.app2>
@type copy
<store>
@type prometheus
<metric>
name fluentd_output_status_num_records_total
type counter
desc The total number of outgoing records
<labels>
tag ${tag}
hostname ${hostname}
</labels>
</metric>
</store>
<store>
@type file
@id ${tag}
path /var/log/td-agent/
<buffer>
timekey 1d
timekey_use_utc true
timekey_wait 10m
</buffer>
</store>
</match>
Can you please help me to fix this ?
--
You received this message because you are subscribed to the Google Groups "Fluentd Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fluentd+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.