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

Problem with special characters in influxdb output plugin #898

Closed
collinlambert opened this issue Mar 21, 2016 · 1 comment · Fixed by #900
Closed

Problem with special characters in influxdb output plugin #898

collinlambert opened this issue Mar 21, 2016 · 1 comment · Fixed by #900

Comments

@collinlambert
Copy link

In plugins.outputs.influxdb.influxdb.go

// Create Database if it doesn't exist
_, e := c.Query(client.Query{
    Command: fmt.Sprintf("CREATE DATABASE IF NOT EXISTS %s", i.Database),
})

The database name needs to be captured in double quotes. Any database with special characters (i.e. '-') will not be created and, surprisingly enough, does not produce an error in the query call. The result is failed writes to InfluxDb.

sparrc added a commit that referenced this issue Mar 21, 2016
@sparrc
Copy link
Contributor

sparrc commented Mar 21, 2016

thx for reporting, that'll be an easy fix :)

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

Successfully merging a pull request may close this issue.

2 participants