10
votes

I am not understanding the format needed to insert data.

Why doesn't test a=dog,b=0,c=nice work?

On the site, I see that <measurement>[,<tag-key>=<tag-value>...] <field-key>=<field-value>[,<field2-key>=<field2-value>...] is the format to follow.

I also am reading you can have 0-many tags (in the above example I have zero tags)

Not sure what I am violating or why the error I keep getting is {"error":"unable to parse 'test a=dog,b=0,c=nice': invalid boolean"}

Who said anything about a boolean!?

2

2 Answers

9
votes

Try this,

test a="dog",b=0,c="nice" 
0
votes

As Sakovias pointed, it seems that the strings need to be surrounded by double quotes, and the double quotes need to be escaped. It looks like if you build your query for the line protocol:

querydata = "measurementname,tag=sometag field1=345,field2=\"label\""