Adding a fake logstash agent

to show how much code is involved, mostly.
cat-town
Dan Buch 11 years ago
parent 742189985d
commit 6848203dd2

@ -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
Loading…
Cancel
Save