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

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