Sha256: b62ad221ba2ca0febaabc4d86423cce6ed50e36b6700e3b19339bf9b19ef8818
Contents?: true
Size: 510 Bytes
Versions: 6
Compression:
Stored size: 510 Bytes
Contents
require 'uri' require 'socket' require 'json' # Read syslog messages from one or more sockets, and send it to a logstash # server. # class Syslogstash def initialize(sockets, servers) @writer = LogstashWriter.new(servers) @readers = sockets.map { |f, tags| SyslogReader.new(f, tags, @writer) } end def run @writer.run @readers.each { |w| w.run } @writer.wait @readers.each { |w| w.wait } end end require_relative 'syslogstash/syslog_reader' require_relative 'syslogstash/logstash_writer'
Version data entries
6 entries across 6 versions & 1 rubygems