Because i'm tired of hearing Rick Astley

This commit is contained in:
John E. Vincent 2011-06-29 22:04:55 -07:00
parent dfd2a9b767
commit d38842a1f0

View file

@ -18,7 +18,7 @@ class LogStash::Outputs::Gelf < LogStash::Outputs::Base
# The GELF chunksize
config :chunksize, :validate => :number, :default => 1420
config :sender, :validate => :string
config :sender, :validate => :string, :default => "%{@source_host}"
# The GELF message level. Dynamic values like %{level} are permitted here;
# useful if you want to parse the 'log level' from an event and use that
@ -73,7 +73,7 @@ class LogStash::Outputs::Gelf < LogStash::Outputs::Base
m["full_message"] = (event.message)
m["host"] = @sender.nil? ? event["@source_host"] : event.sprintf(@sender)
m["host"] = event.sprintf(@sender)
m["file"] = event["@source_path"]
event.fields.each do |name, value|