Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After updating config.go, settings for parsers and measurement names are not taken #8362

Closed
M0rdecay opened this issue Nov 4, 2020 · 4 comments
Labels
bug unexpected problem or unintended behavior

Comments

@M0rdecay
Copy link
Contributor

M0rdecay commented Nov 4, 2020

Relevant telegraf.conf:

[[inputs.file]]
  files = [ "data.xml" ]
  name_override = "measurement_1"
  data_format = "value"
  data_type = "string"

Expected behavior:

The telegraf will work with this configuration

Actual behavior:

2020-11-04T10:19:56Z E! [telegraf] Error running agent: Error loading config file some_data.conf: plugin inputs.file: line 1: configuration specified the fields ["name_override" "data_type"], but they weren't used

Additional info:

I ran into this while testing after updating my branch after merging this PR - #7583.
Parameters for the parser are now marked as unused.

After that, I builded telegraf from the master branch, after which I encountered the error described above.

@ssoroka, take a look, please. The situation is reproduced on the master build.

@M0rdecay M0rdecay added the bug unexpected problem or unintended behavior label Nov 4, 2020
ssoroka added a commit that referenced this issue Nov 4, 2020
ssoroka added a commit that referenced this issue Nov 4, 2020
@ssoroka
Copy link
Contributor

ssoroka commented Nov 4, 2020

should be resolved now. Thanks for the report!

@ssoroka ssoroka closed this as completed Nov 4, 2020
@melroy89
Copy link

melroy89 commented Jan 15, 2021

Telegraf 1.17.0 on Ubuntu Server 20.04 LTS. Same issue still, this time with the inputs.exec plugin:

Error loading config file /etc/telegraf/telegraf.conf: plugin inputs.exec: line 2324: configuration specified the fields ["date_type"], but they weren't used

While the documentation says data_type is required: https://docs.influxdata.com/telegraf/v1.17/data_formats/input/value/

@M0rdecay
Copy link
Contributor Author

M0rdecay commented Mar 3, 2021

@Danger89 it seems you have specified the parameter incorrectly:

configuration specified the fields ["date_type"], but they weren't used

please, try with data_type

@melroy89
Copy link

melroy89 commented Mar 4, 2021

Oopsy, let me check.

EDIT: Sorry, it was indeed a typo! My bad!

arstercz pushed a commit to arstercz/telegraf that referenced this issue Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

3 participants