Influxdb: [0.9.0] spaces in line protocol in tags

Created on 22 Jun 2015  路  3Comments  路  Source: influxdata/influxdb

tried to add this line

webfilter,uid='',category='suspicious',rulename='default',public_ip='52.28.100.45',blocktype='blocked domain',why='blocked domain',hostname='',website='c.byvue.com',client='alexandre-amd' TIME=1435003513,RQS=1

Generate a Error:bad timestamp
Because there are space in tag value
adding any quotes did not change the error...

Most helpful comment

@beckettsean Small correction to what you said. Field values should use double-quotesif they are string values. Not single quotes.

All 3 comments

In the line protocol, tag keys and values and field keys should not be quoted, spaces and commas must always be escaped by a backslash \

For field values, strings should be single-quoted and spaces or commas need not be escaped.

See https://github.com/influxdb/influxdb/blob/master/tsdb/README.md for more.

@beckettsean Small correction to what you said. Field values should use double-quotesif they are string values. Not single quotes.

Thanks!!!

Was this page helpful?
0 / 5 - 0 ratings