-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
CSV parsing issue #10366
Comments
I have the same problem. Going down the version to 1.20.4 also fixed it.
|
I have the same problem with version 1.21.2. Fixed by downgrading to 1.20.4. Logs: Config:
|
Can you provide a CSV file your trying to parse so we can reproduce this issue? There were changes made to the parser from v1.20->v1.21, but it isn't obvious what is causing this issue at first glance. |
Here is a CSV file: example.csv. |
I think I found the problem in this PR: #10484, it only happens when you run Gather twice the second time the code accidentally changed the configured |
Sorry, but it seems the issue still persists in 1.21.3?! |
Yeah the PR was closed without any actions taken. |
Thanks, we know it is still an open issue. The PR discovered it will require a different approach to fix so it was closed. |
Ok, thanks for clarifying. |
Hey @miurlit, @jonilala796 @gwlqt, I cooked up an approach in #10575 and would be happy to get feedback if that solves your issues!?!? Could you please add a comment to the PR on your results? Thanks! |
@srebhan sorry, was not actively following this conversation, but I am afraid that the issue still persists with the latest release (1.21.4) |
Since version 1.21 there seems to be an issue with CSV files, I am getting a parsing error:
Jan 3 02:14:20 raspberrypi telegraf[426]: 2022-01-03T01:14:20Z E! [inputs.file] Error in plugin: parsing time "dd/MM/yyyy HH:mm:ss z" as "02/01/2006 15:04:05 -0700": cannot parse "dd/MM/yyyy HH:mm:ss z" as "02"
If revert back to 1.20.4 no error occurs with the same CSV file.
Thanks
The text was updated successfully, but these errors were encountered: