influxdata / influxdb-sample-data

Sample time series data used to test InfluxDB
MIT License
9 stars 6 forks source link

influxdb 0.10.1 error: missing measurement #2

Open kbrown opened 8 years ago

kbrown commented 8 years ago

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.

beckettsean commented 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?

bolatov commented 8 years ago

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"}
mrvic commented 6 years ago

Same problem here!

chaconpiza commented 4 years ago

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