Socket
Book a DemoInstallSign in
Socket

log_aggregator

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

log_aggregator

0.0.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

Parser

Test app for SP: log files parser. Parses a log file and returns information regarding total visits and unique visits count.

Installation

This Parser app uses ruby 2.6. Steps to install:

  • git clone https://github.com/natonnelier/ruby_app.git
  • cd ruby_app && bundle install

Usage

List pages with most views in descending order:

rake parse:visits webserver.log #or my-file-path.log

Prints:

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

List pages with most unique page views in descending order:

rake parse:unique webserver.log #or my-file-path.log

Prints:

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

To run tests:

rspec spec

or

bundle exec rspec spec

or

rake spec

FAQs

Package last updated on 05 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.