We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
influx is re-escaping \ character when converting to line protocol. here is my python code
\
from influxdb import InfluxDBClient connection = InfluxDBClient(host='localhost', database='telegraf') points = [{ "measurement": "test", "tags": { "tag1": "value1", "tag2": "value\2", "tag3": "value\\3", "tag4": r"value\4", "tag5": r"value\\5" }, "time": 1624989000000000000, "fields": { "value": 10 } }] connection.write_points(points)
influx db
> select * from test; name: test time tag1 tag2 tag3 tag4 tag5 value ---- ---- ---- ---- ---- ---- ----- 1624989000000000000 value1 value value\\3 value\\4 value\\\\5 10 > INSERT test,tag1=value1,tag2=value\2,tag3=value\3,tag4=value\4,tag5=value\\5 value=10i 1624999000000000000 > select * from test; name: test time tag1 tag2 tag3 tag4 tag5 value ---- ---- ---- ---- ---- ---- ----- 1624989000000000000 value1 value value\\3 value\\4 value\\\\5 10 1624999000000000000 value1 value\2 value\3 value\4 value\\5 10
This was reported on slack before some days please check the conversation link below https://influxcommunity.slack.com/archives/CHQ5VG6F8/p1625576669051600
The text was updated successfully, but these errors were encountered:
Hi @sar009,
thanks for using our client.
I've prepared PR #303. If you would like to use dev version of client then install client via:
pip install git+https://github.com/influxdata/influxdb-client-python.git@fix/escaping_backslash
Regards
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
influx is re-escaping
\
character when converting to line protocol.here is my python code
influx db
This was reported on slack before some days please check the conversation link below
https://influxcommunity.slack.com/archives/CHQ5VG6F8/p1625576669051600
The text was updated successfully, but these errors were encountered: