From 4a27cc8b7471860e6fcdadb5e919e24acdd8c40c Mon Sep 17 00:00:00 2001 From: Mohamed Laradji Date: Thu, 30 Jan 2020 09:47:07 -0800 Subject: [PATCH] Update influxdb.rb This resolves #82. This change basically implements @gdolata's suggested change, which I have verified to be working on my setup. --- lib/logstash/outputs/influxdb.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/logstash/outputs/influxdb.rb b/lib/logstash/outputs/influxdb.rb index 9d5f0b9..3f8160b 100644 --- a/lib/logstash/outputs/influxdb.rb +++ b/lib/logstash/outputs/influxdb.rb @@ -187,7 +187,7 @@ def flush(events, database, teardown = false) def dowrite(events, database) begin - @influxdbClient.write_points(events, @time_precision, @retention_policy, @db ) + @influxdbClient.write_points(events, @time_precision, @retention_policy, database ) rescue InfluxDB::AuthenticationError => ae @logger.warn("Authentication Error while writing to InfluxDB", :exception => ae) rescue InfluxDB::ConnectionError => ce