Open reimda opened 2 years ago
It looks like this is a problem in the https://github.com/influxdata/toml module. In the error message, the first part (Error running agent: Error loading config file telegraf.conf.24806: Error parsing data
) is written by telegraf, but the rest comes from the module.
See parseConfig in config/config.go
Relevant telegraf.conf
Logs from Telegraf
System info
today's master branch
Docker
No response
Steps to reproduce
I triggered it using a file input and xml parser with two tags, both named "sensor"
Expected behavior
Both line numbers in the error message are in decimal. In my example the duplicate keys are on line 106 and 107.
Actual behavior
One line number in the error message is in decimal (107 in my example) and the other is in hex (6a in the example, which is 106 decimal)
Additional info
No response