Sha256: a51bb92777291a816735a54777d0bf9177384ffd02da9f233412b8415a34626f
Contents?: true
Size: 695 Bytes
Versions: 2
Compression:
Stored size: 695 Bytes
Contents
#!/usr/bin/env ruby # require 'bundler/setup' require 'zlib' require 'suricata/surilizer' def usage(prognam) puts "Usage: #{prognam} <fast.log | fast.log.gz | fast.log fast.log.1.gz fast.log2.gz fast3.log>" exit 0 end begin usage($PROGRAM_NAME) if ARGV.length == 0 surilizer = Suricata::Surilizer.new() ARGV.each do |f| if f =~ /.*.gz$/ Zlib::GzipReader.open(f) {|gz| surilizer.logfile = Suricata::Logfile.new(nil,false,gz) surilizer.analyze surilizer.logfile.close } else surilizer.logfile = Suricata::Logfile.new(f) surilizer.analyze surilizer.logfile.close end end surilizer.result rescue Errno::ENOENT => e puts "#{e.message}\n" exit 1 end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
suricata-0.3.7 | exe/surilizer |
suricata-0.3.6 | exe/surilizer |