Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Line Protocol: Empty tag value gets converted to a format rejected by InfluxDB server 0.9.1 #215

Closed
junmipan opened this issue Jul 17, 2015 · 1 comment

Comments

@junmipan
Copy link

A tag in JSON doc as follows:

{
    "tags" : {
        "my_tag" : ""
    }
}

is converted to line format, by line_protocol.py:make_lines(), as:
my_tag=

This resulted in format error when sent to InfluxDB server. Should the method convert it to the following instead?
my_tag=""

Or should I simply omit empty tag?

Please advise.

@aviau
Copy link
Collaborator

aviau commented Jul 17, 2015

Should the method convert it to the following instead? my_tag=""

Yes. I think so.

I'll fix it, thanks!

Edit: Not exactly. There are no quotes around tag values.

aviau added a commit that referenced this issue Jul 19, 2015
Dont include empty tags in lines (Closes: #215)
@aviau aviau closed this as completed Jul 27, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants