mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
parent
56dbbff8a8
commit
2efad5bffe
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ class LogStash::Inputs::Stdin < LogStash::Inputs::Base
|
|||
data = $stdin.sysread(16384)
|
||||
@codec.decode(data) do |event|
|
||||
decorate(event)
|
||||
event["host"] = @host
|
||||
event["host"] = @host if !event.include?("host")
|
||||
queue << event
|
||||
end
|
||||
rescue EOFError, LogStash::ShutdownSignal
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue