A simple log parser written in ruby that summarises the server log in terminal
- Go to the project directory
- Install Ruby
3.0.2
and latestbundler
gem by eitherrbenv
or byrvm
- Hit command
bundle install
- You might want to change the
ruby
path if you do not have system levelruby
install, in that case, from terminal- You have to hit
which ruby
from terminal and then copy the path and then replace the pat mentioned in the first line ofparser.rb
- You have to hit
- Install Ruby
- From application root directory
- Run command
./parser.rb <log_path>
- Run command
You should see an output like below
- From application root directory
- Run command
bundle exec rspec
- Run command
- The above command will create a directry named
coverage
in the aplication folder with anindex.html
file in it - Open the generated
index.html
file in browser and you should see an output like below
- This application is tested for log format which is available at
resources
directory. Any other log format might break the application. GenericException
handler was not placed because that would defeat the purpose of this application.