Open kbrown opened 8 years ago
Check the InfluxDB docs for more on the write syntax: https://docs.influxdata.com/influxdb/v0.10/guides/writing_data/
I think the problem may be related to using a path with the @ flag. Can you try with a filename that is local to the current working directory?
hello @kbrown , were you able to solve the import issue?
I am trying to import a citibike_station_data.sample.log and having the same issue. Here is my curl request:
curl -i -XPOST 'http://localhost:8086/write?db=citibike --data-binary @citibike_station_data.sample.log
And here is the response I've got:
{"error": "missing measurement"}
Same problem here!
Hi,
It seems that the data is not written in InfluxDB's line protocol syntax [1], but as json. Using the InfluxDB Python API as described in this blog [2] I was able to load the data. ;-)
[1] https://medium.com/@eyebool/creating-a-sample-database-for-influxdb-102a89464132 [2] https://docs.influxdata.com/influxdb/v0.10/guides/writing_data/#writing-points-from-a-file
curl -X POST -d @sensor/citibike_station_data.sample.log 'http://localhost:8086/write?db=citibike' {"error":"missing measurement"}
Am I doing something wrong? An example in the Readme might help non-influxdb experts. curl -X POST could be so many things.