I’m having a problem with getting csv data into InfluxDB. I have a system that automatically generates a CSV at schedule interval with the list of all the IP phones and the state. this csv is stored in a folder that telegraf will read. I will like to monitor these states and identify devices “Out of Service” and display that data in a dashboard on grafana.
The problem that I have is that on the csv there is no column with the date and time. is there a way what telegraf can add the date and time when it process each file as they are dropped in the monitored folder.
The fist 2 rows are not important, they are the name of the report.
All IP Telephones,vid0.102,14.0.3.37,
0,1,2,3,17,4,6,7,8,10,11,12,13,14,15,16,
Next are the headers for each column and from the next line there is the data.
Name,Number,Device ID,Device Type,Device Description,State,Registration Reason,MAC Address,IP Address,Subnet,Default Gateway,Voice Quality Statistics Enabled,Primary ICP,Secondary ICP,Hardware Version,Software Version
For my case the only important columns are the Name, Number and the State
Here is a sample of the csv.
All IP Telephones,vid0.102,14.0.3.37,
0,1,2,3,17,4,6,7,8,10,11,12,13,14,15,16,
Name,Number,Device ID,Device Type,Device Description,State,Registration Reason,MAC Address,IP Address,Subnet,Default Gateway,Voice Quality Statistics Enabled,Primary ICP,Secondary ICP,Hardware Version,Software Version,
John Dow,7143,133,Generic SIP Phone,Vtech/SIP_57.4.80.10,In Service,Start,192.168.20.154,False,MIVB1,MIVB2,