- trim line terminator

This commit is contained in:
Jordan Sissel 2011-07-18 10:08:40 -07:00
parent fc1ba8baaf
commit 489eeca23a

View file

@ -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