my telegraf.conf file:
[agent]
interval = “1s”
round_interval = true
metric_batch_size = 2200
metric_buffer_limit = 22000
collection_jitter = “0s”
flush_interval = “5s”
flush_jitter = “0s”
precision = “100ms”
[[outputs.influxdb]]
urls = [“http://127.0.0.1:8086”]
database = “gnss”
skip_database_creation = true
retention_policy = “undia”
write_consistency = “any”
timeout = “10s”
username = “xxxxx”
password = “xxxxx”
[[inputs.file]]
alias = “gnss”
files = [“/GNSS/202.csv”]
data_format = “csv”
csv_header_row_count = 0
csv_column_names = [“time”,“station”,“flag1”,“flag2”,“svnnum”,“xpos”,“ypos”,“zpos”,“vcvx”,“vcvy”,“vcvz”,“neux”,“neuy”,“neuz”]
csv_column_types = [“string”,“string”,“int”,“int”,“int”,“float”,“float”,“float”,“float”,“float”,“float”,“float”,“float”,“float”]
csv_skip_rows = 0
csv_delimiter = “,”
csv_comment = “”
csv_trim_space = false
csv_tag_columns = [“station”]
csv_timestamp_column = “time”
csv_timestamp_format = “2023-11-16T03:48:52Z”
and the gnss csv files are:
2024-10-24T23:34:51Z,BING,191,35,14,1862659.502882,-5366158.472191,-2891322.004354,0.017360,0.032537,0.021888,-0.003411,-0.003501,-0.004982
2024-10-24T23:34:52Z,BING,191,35,14,1862659.498743,-5366158.463335,-2891322.008339,0.017479,0.032687,0.022023,-0.004417,-0.011482,-0.011819
2024-10-24T23:34:53Z,BING,191,35,14,1862659.500895,-5366158.469424,-2891322.007578,0.017599,0.032836,0.022156,-0.004380,-0.007859,-0.006417
When I start telegraph, I have the following errors:
[inputs.file::gnss] Error in plugin: could not parse “/GNSS/AAAA20241024.csv”: parsing time “2024-10-24T23:34:51Z” as “2023-11-16T03:48:52Z”: cannot parse “-10-24T23:34:51Z” as “3”
…
I’ve been searching the forums but have tried many configurations but none seem to work. I’m a little lost at this point…
Any ideas that can help me solve this problem?