I’m running Influx 1.7.4 on a Windows OS and can’t get the “influx -Import” command to work. I even tried this example shown below in the Influx Docs and many other variations with no luck.
Is anyone else having this issue? I can figure out what I’m missing or if there’s a bug. Here’s the error…
C:.…\Influx\influxdb-1.7.4-1>influx -import -path=datarrr.txt -precision=s
2019/02/22 15:47:53 error writing batch: {“error”:"unable to parse ‘treasures,captain_id=dread_pira
te_roberts value=801 1550865814\r’: bad timestamp\nunable to parse ‘treasures,captain_id=flint value
=29 1550865814\r’: bad timestamp\nunable to parse ‘treasures,captain_id=sparrow value=38 1550865814
r’: bad timestamp\nunable to parse ‘treasures,captain_id=tetra value=47 1550865814\r’: bad timestamp
"}
2019/02/22 15:47:53 treasures,captain_id=dread_pirate_roberts value=801 1550865814
treasures,captain_id=flint value=29 1550865814
treasures,captain_id=sparrow value=38 1550865814
treasures,captain_id=tetra value=47 1550865814
ERROR: 4 points were not inserted
I’m also getting this error…
C:.…\Influx\influxdb-1.7.4-1>influx -import -path=LPData00001.txt
2019/02/22 15:51:37 error: error parsing query: found ?, expected SELECT, DELETE, SHOW, CREATE, DROP
, EXPLAIN, GRANT, REVOKE, ALTER, SET, KILL at line 1, char 1
2019/02/22 15:51:37 error: error parsing query: found JimsMeasurement01649, expected SELECT, DELETE,
SHOW, CREATE, DROP, EXPLAIN, GRANT, REVOKE, ALTER, SET, KILL at line 1, char 1
2019/02/22 15:51:37 error: error parsing query: found JimsMeasurement01649, expected SELECT, DELETE,
SHOW, CREATE, DROP, EXPLAIN, GRANT, REVOKE, ALTER, SET, KILL at line 1, char 1
Where LPData00001.txt = …
DML
CONTEXT-DATABASE: JimsDB2
JimsMeasurement01649,EngUnit=PPM Status=“Good”,Value=52.1166419620319 1420088400000000000
JimsMeasurement01649,EngUnit=PPM Status=“Good”,Value=94.9015425680828 1420088410000000000