mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
- trim line terminator
This commit is contained in:
parent
fc1ba8baaf
commit
489eeca23a
1 changed files with 1 additions and 0 deletions
|
@ -49,6 +49,7 @@ class LogStash::Inputs::Tcp < LogStash::Inputs::Base
|
|||
buf = s.readline
|
||||
end
|
||||
end
|
||||
buf.chomp!
|
||||
e = self.to_event(buf, "tcp://#{@host}:#{@port}/client/#{peer}")
|
||||
if e
|
||||
output_queue << e
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue