box-o-sand/oldstuff/logstash/fake-logstash-agent.rb

10 lines
138 B
Ruby
Raw Normal View History

# vim:fileencoding=utf-8
require 'socket'
2013-07-08 15:56:08 +00:00
server = TCPServer.new(55784)
loop do
client = server.accept
$stderr.puts client.gets
end