influxdata / influxdata/docs-v2

Escape target need to add backslash itself

Open
#4,392 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
82
Forks
326
Avg merge
1d 1h
Merged PRs (30d)
82

Description

Current documentation mentions

> [Special Characters](https://docs.influxdata.com/influxdb/v1.4/write_protocols/line_protocol_reference/#special-characters)
> For tag keys, tag values, and field keys always use a backslash character \ to escape:
>
> commas ,
> equal signs =
> spaces

need to add following.

> backslash \

I think, we also need to escape "backslash" itself.
for example, If tag value contains "\\" as part of data, we need make it "\\\\" to escape.

##### Relevant URLs
https://docs.influxdata.com/influxdb/v1.4/write_protocols/line_protocol_reference/#special-characters

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open the linked InfluxDB v1.4 line protocol reference and inspect the Special Characters section. Update that documentation to cover backslashes and include the escaping example; it is done when the list and example clearly explain how to represent a backslash in tag values.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.