box-o-sand/oldstuff/logstash/fake-logstash-agent.rb
2015-06-22 13:15:42 -05:00

10 lines
138 B
Ruby

# vim:fileencoding=utf-8
require 'socket'
server = TCPServer.new(55784)
loop do
client = server.accept
$stderr.puts client.gets
end