mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
commit
480e78ba0a
1 changed files with 3 additions and 0 deletions
|
@ -120,6 +120,7 @@ class LogStash::Inputs::Syslog < LogStash::Inputs::Base
|
|||
source = "syslog://#{ip}/"
|
||||
end
|
||||
|
||||
begin
|
||||
client.each do |line|
|
||||
e = to_event(line.chomp, source)
|
||||
if e
|
||||
|
@ -127,6 +128,8 @@ class LogStash::Inputs::Syslog < LogStash::Inputs::Base
|
|||
output_queue << e
|
||||
end # e
|
||||
end # client.each
|
||||
rescue Errno::ECONNRESET
|
||||
end
|
||||
end # Thread.new
|
||||
end # loop do
|
||||
ensure
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue