Sha256: 1b6bc3a82643d44d7f1d7bd0c5099fb437adf39f2a3470bcab9b3331f59c7192
Contents?: true
Size: 680 Bytes
Versions: 4
Compression:
Stored size: 680 Bytes
Contents
#!/usr/bin/env ruby # require 'bundler/setup' 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
suricata-0.3.5 | exe/surilizer |
suricata-0.3.4 | exe/surilizer |
suricata-0.3.3 | exe/surilizer |
suricata-0.3.2 | exe/surilizer.rb |