Skip to content

Commit

Permalink
Use the path to the database instead of the db object. Fixes #5
Browse files Browse the repository at this point in the history
  • Loading branch information
jordansissel committed Dec 10, 2015
1 parent b9c6ef0 commit 98498da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/logstash/inputs/sqlite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit 98498da

Please sign in to comment.