Skip to content

Commit

Permalink
include fields as well; fix missing comma
Browse files Browse the repository at this point in the history
  • Loading branch information
jordansissel committed Sep 18, 2012
1 parent f34eebd commit 4ee0712
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/logstash/inputs/lumberjack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def register
require "lumberjack/server"

@logger.info("Starting lumberjack input listener", :address => "#{@host}:#{@port}")
@lumberjack = Lumberjack::Server.new(:address => @host, :port => @port
@lumberjack = Lumberjack::Server.new(:address => @host, :port => @port,
:ssl_certificate => @ssl_certificate, :ssl_key => @ssl_key,
:ssl_key_passphrase => @ssl_key_passphrase)
end # def register
Expand All @@ -40,13 +40,13 @@ def register
def run(output_queue)
@lumberjack.run do |l|
event = LogStash::Event.new(
"@message" => l["line"],
"@source_path" => l["file"],
"@source_host" => l["host"],
"@type" => @type
"@message" => l.delete("line"),
"@source_path" => l.delete("file"),
"@source_host" => l.delete("host"),
"@fields" => l,
"@type" => @type,
"@tags" => @tags.clone
)

output_queue << event
end
end # def run
Expand Down

0 comments on commit 4ee0712

Please sign in to comment.