mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
- Try to work around some weird index type mapping bug/pebcak.
This commit is contained in:
parent
4654755e7d
commit
d9d78927d8
1 changed files with 8 additions and 0 deletions
|
@ -88,6 +88,14 @@ class LogStash::Outputs::Elasticsearch < LogStash::Outputs::Base
|
|||
end
|
||||
else raise "unknown elasticsearch method #{params["method"].inspect}"
|
||||
end
|
||||
|
||||
@callback.call(LogStash::Event.new({
|
||||
"@source" => "@logstashinit",
|
||||
"@type" => "@none",
|
||||
"@fields" => {
|
||||
"HOSTNAME" => Socket.gethostname
|
||||
}
|
||||
}))
|
||||
end # def ready
|
||||
|
||||
public
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue