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

fail to load config of CSV format intput #4706

Closed
WuBingzheng opened this issue Sep 17, 2018 · 1 comment · Fixed by #4712
Closed

fail to load config of CSV format intput #4706

WuBingzheng opened this issue Sep 17, 2018 · 1 comment · Fixed by #4712
Milestone

Comments

@WuBingzheng
Copy link

I want to use telegraf (version Telegraf 1.8.0~rc1 (git: HEAD 0984fc0d)) to read csv file, but it fails to load config:

[[inputs.tail]]
  files = ["/path/test.csv"]
  data_format = "csv"
  csv_header_row_count = 1

it gives the error:

E! Error parsing telegraf.conf, there must be a header if `csv_data_columns` is not specified

If I use csv_data_columns, it fails too:

[[inputs.tail]]
  files = ["/path/test.csv"]
  data_format = "csv"
  csv_column_names = ["x","y"]

error:

E! Error parsing telegraf.conf, line 4241: field corresponding to `csv_column_names' is not defined in `*tail.Tail'

I am new to telegraf, so I do not know if I config wrong, or is it a bug?

Thanks in advance

@danielnelson
Copy link
Contributor

Thanks for the report, this appears to be a bug. We will fix this for 1.8.0-rc2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants