Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 708 Bytes

README.md

File metadata and controls

43 lines (33 loc) · 708 Bytes

Log Analyzer


Installation

Install Ruby 3.1.0. Clone the repo and

cd log-analyzer
bundle install

Usage

The default format(total views counts) in default order(descending)

:$ ./parser webserver.log

/about/2 90 visits
/contact 89 visits
/index 82 visits
/about 81 visits
/help_page/1 80 visits
/home 78 visits

Format by unique page views counts in asending order:

:$ ./parser -f UV -o ASC webserver.log

/about 21 unique views
/about/2 22 unique views
/help_page/1 23 unique views
/contact 23 unique views
/home 23 unique views
/index 23 unique views

Run tests with

rake test