0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Find waf logs that match rails routing.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0
~> 10.0
~> 3.0
 Project Readme

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.