mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
- do tags/type settings (TODO: refactor this into the codec somewhow?)
This commit is contained in:
parent
5856bd73a1
commit
e03e1f08e0
1 changed files with 2 additions and 0 deletions
|
@ -22,6 +22,8 @@ class LogStash::Inputs::Stdin < LogStash::Inputs::Base
|
|||
line = $stdin.readline.chomp
|
||||
@codec.decode(line) do |event|
|
||||
event["source"] = @host
|
||||
event["type"] = @type if @type
|
||||
@tags && @tags.each { |t| event.tag(t) }
|
||||
queue << event
|
||||
end
|
||||
rescue EOFError => ex
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue