[[inputs.http]] error table `headers' is in conflict #4098
Labels
area/configuration
bug
unexpected problem or unintended behavior
upstream
bug or issues that rely on dependency fixes
Milestone
I need to define multiple instances of the
inputs.http
plugin.This plugin seems not to allow "headers" in multiple instances.
A configuration like the one below produces an error in toml parsing:
toml: line 11: table
headers' is in conflict with normal table in line 5`Relevant telegraf.conf:
If I remove one of the
headers
lines, the configuration is accepted.The behaviour does not change if:
headers={...}
to[headers] ...
)data_format
,insecure_skip_verify
,taginclude
,...)I know that this particular case can be addressed using the plugin syntax
but I need to define multiple instances because different systems require different headers.
System info:
Telegraf v1.6.1 (git: release-1.6 bf0ab27)
on
Ubuntu 16.04
Actual behavior:
$ telegraf --test --config-directory /etc/telegraf/telegraf.d
The text was updated successfully, but these errors were encountered: