Hello @mattroell,
Welcome! Hmm can you help me understand your csv better? I see a measurement name and a timestamp but no field value. What is your field?
I haven’t added more data to the cvs yet, I’m testing to make sure that it works before I commit more time into it. I thought with the data that I have currently have, that it would work.
Hello @mattroell,
I believe you need a field if you want ExpiryDate to be interpreted as a timestamp. I believe it’s interpreting the ExpiryDate as a field of string type.
You’ll also need to include csv_timestamp_column and csv_timestamp_format
By default the current time will be used for all created metrics, to set the time using the JSON document you can use the csv_timestamp_column and csv_timestamp_format options together to set the time to a value in the parsed document.
The csv_timestamp_column option specifies the key containing the time value and csv_timestamp_format must be set to unix, unix_ms, unix_us, unix_ns, or a format string in using the Go “reference time” which is defined to be the specific time: Mon Jan 2 15:04:05 MST 2006.
You’ll want to convert your timestamps to either unix or Go "reference time (
“2006-01-02T15:04:05Z07:00”)
Also, please try setting debug = True in your telegraf config to help you debug Telegraf.