Skip to content
This repository has been archived by the owner on Mar 11, 2023. It is now read-only.

chibicco/waffle-maker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WaffleMaker

Gem Version Coverage Status Build Status

Find waf logs that match rails routing.

Installation

Add this line to your application's Gemfile:

gem 'waffle-maker'

And then execute:

$ bundle

Or install it yourself as:

$ gem install waffle-maker

Usage

By passing the WAF log from the standard input, the log that matches the route is written to the standard output.

$ bundle exec rake waffle:filter < alert-201912.txt

Depending on the execution environment, you may need to pre-convert the character encoding of the log.

$ iconv -f CP932 -t UTF-8 < alert-201912.txt | bundle exec rake waffle:filter 

with options

  • -f: Specify the column number (offset) that contains the Rails route path. default is 2.
  • -w: Specify the column number (offset) that contains the path in the WAF log. default is 2.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/chibicco/waffle-maker.

About

Find waf logs that match rails routing.

Resources

License

Stars

Watchers

Forks

Packages

No packages published