From 98498dadf0ef8dd192dc790f80e4911b7dc39048 Mon Sep 17 00:00:00 2001 From: Jordan Sissel Date: Wed, 9 Dec 2015 16:05:23 -0800 Subject: [PATCH] Use the path to the database instead of the db object. Fixes #5 --- lib/logstash/inputs/sqlite.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/logstash/inputs/sqlite.rb b/lib/logstash/inputs/sqlite.rb index 7dd434a..95afabb 100644 --- a/lib/logstash/inputs/sqlite.rb +++ b/lib/logstash/inputs/sqlite.rb @@ -157,7 +157,7 @@ def run(queue) rows = get_n_rows_from_table(@db, table_name, offset, @batch) count += rows.count rows.each do |row| - event = LogStash::Event.new("host" => @host, "db" => @db) + event = LogStash::Event.new("host" => @host, "db" => @path) decorate(event) # store each column as a field in the event. row.each do |column, element|