mirror of
https://github.com/elastic/logstash.git
synced 2025-04-23 22:27:21 -04:00
use @tags when making an event
This commit is contained in:
parent
2a278d9dcf
commit
11c7804848
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ class LogStash::Inputs::Tcp < LogStash::Inputs::Base
|
|||
e = LogStash::Event.new({
|
||||
"@message" => buf,
|
||||
"@type" => @type,
|
||||
"@tags" => [@type],
|
||||
"@tags" => @tags.clone,
|
||||
})
|
||||
e.source = "tcp://#{@host}:#{@port}/client/#{peer}"
|
||||
@logger.debug(["Received message from #{peer}"], e)
|
||||
|
@ -63,5 +63,5 @@ class LogStash::Inputs::Tcp < LogStash::Inputs::Base
|
|||
end # begin
|
||||
end # Thread.start
|
||||
end # loop (outer)
|
||||
end # def receive
|
||||
end # def run
|
||||
end # class LogStash::Inputs::Tcp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue