- One final fix to this elasticsearch index type mapping hack. There's a

real fix, but I don't know what it is yet (need to talk with the ES
  folks)
This commit is contained in:
Jordan Sissel 2011-01-11 13:57:03 +08:00 committed by Alexandre Dulaunoy
parent 762cd87ae5
commit e878dcca46

View file

@ -92,12 +92,13 @@ class LogStash::Outputs::Elasticsearch < LogStash::Outputs::Base
else raise "unknown elasticsearch method #{params["method"].inspect}" else raise "unknown elasticsearch method #{params["method"].inspect}"
end end
@callback.call(LogStash::Event.new({ receive(LogStash::Event.new({
"@source" => "@logstashinit", "@source" => "@logstashinit",
"@type" => "@none", "@type" => "@none",
"@message" => "Starting logstash output to elasticsearch",
"@fields" => { "@fields" => {
"HOSTNAME" => Socket.gethostname "HOSTNAME" => Socket.gethostname
} },
})) }))
pending = @pending pending = @pending