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

Run "db" parameter through event.sprintf() to support substitutions in the database name #31

Closed
mikelaws opened this issue Feb 11, 2016 · 1 comment

Comments

@mikelaws
Copy link

Using the pr/29 branch, it appears that the db configuration parameter does not support event field substitution, causing a configuration like:

db => "%{customer}_%{region}_%{environment}"

to log a URI format exception, and fail flushing the stud/buffer due to the resulting URI:

http://localhost:8086/write?db=%{customer}_%{region}_%{environment}&rp=default&precision=ms&u=user&p=pass

Supporting this would better align the behavior of this output plugin with the majority of other Logstash output plugins (and would be hugely appreciated).

@suyograo
Copy link
Contributor

Fixed in #33

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

No branches or pull requests

2 participants