Adding a fake logstash agent
to show how much code is involved, mostly.
This commit is contained in:
parent
742189985d
commit
6848203dd2
17
logstash/fake-logstash-agent.rb
Normal file
17
logstash/fake-logstash-agent.rb
Normal 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
|
Loading…
Reference in New Issue
Block a user