LogAnalysis

Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file lib/log_analysis. To experiment with that code, run bin/console for an interactive prompt.

Installation

Add this line to your application's Gemfile:

gem 'log_analysis'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install log_analysis

Usage

In rails app

a = LogAnalysis.new('access.log')

a.rule_generation

In console

cd this folder then:

rm log_analysis-0.1.1.gem
gem build log_analysis.gemspec
gem install log_analysis
pry
require 'log_analysis'
a = LogAnalysis.new('access.log')
a.rule_generation

cd to '/data/waazabag' to get result files