Adding a fake logstash agent

to show how much code is involved, mostly.
This commit is contained in:
Dan Buch 2013-07-08 11:54:52 -04:00
parent 742189985d
commit 6848203dd2

View File

@ -0,0 +1,17 @@
# vim:fileencoding=utf-8
require 'socket'
def main
server = TCPServer.new(55784)
loop do
client = server.accept
$stderr.puts client.gets
end
end
if __FILE__ == $0
main
end