Skip to content
New issue

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

Influxdb goclient API does not work when a field has a newline character in it #3545

Closed
lokeshintuit opened this issue Aug 3, 2015 · 2 comments
Assignees

Comments

@lokeshintuit
Copy link

          for  b := uint64(0); b < *batch; b++ {
                    pts[b] = influx.Point{
                            Measurement: MEASUREMENT_STR,
                            Fields: map[string]interface{}{
                                    MESSAGE_LABEL_STR : "this has newline\n",
                            },
                            Time:      time.Now(),
                            Precision: PRECISION_STR,
                            Tags: map[string] string {
                                    APP_NAME_K: APP_NAME_V,
                            },
                    }
            }

            bps := influx.BatchPoints{
                    Points:          pts,
                    Database:        DATABASE_NAME,
                    RetentionPolicy: RETENTION_POLICY,
            }

Failed to write the message unable to parse 'app_logs,appname=app msg="node-38eaa7157a74|10.1.20.1|TORRANCE|1|INFO|13|app|app|app|consumer.go:150|2015/07/31 18:03:48.993878379|Commited offset 7499': unbalanced quotes

@lokeshintuit
Copy link
Author

what is the update on this?

@beckettsean
Copy link
Contributor

@lokeshverizon no comments on the issue means no updates yet.

jwilder added a commit that referenced this issue Aug 5, 2015
Newlines in a string field would cause the parser to return
the line prematurely causing "unbalanced quotes" errors.  This
makes the line scanning aware of quote fields so that the whole
line is returned.

Fixes #3545
@jwilder jwilder self-assigned this Aug 5, 2015
jwilder added a commit that referenced this issue Aug 6, 2015
Newlines in a string field would cause the parser to return
the line prematurely causing "unbalanced quotes" errors.  This
makes the line scanning aware of quote fields so that the whole
line is returned.

Fixes #3545
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants