logstash-plugins / logstash-output-influxdb

Apache License 2.0
58 stars 79 forks source link

The milliseconds time precision parameter is "ms", not "m" #22

Closed contentfree closed 8 years ago

contentfree commented 9 years ago

From the Influxdb docs: "If you write data with a time you should specify the precision, which can be done via the time_precision query parameter. It can be set to either s for seconds, ms for milliseconds, or u for microseconds."

Whereas this plugin validates time_precision as "m" for milliseconds. This leads to the incorrect precision in influxdb.

(Additionally, the default probably should match Influxdb's default of millisecond.)

suyograo commented 8 years ago

Fixed in #30