2017 © Pedro PelĂĄez
 

library http-log

Provides a console application for analyzing an HTTP access log file.

image

localheinz/http-log

Provides a console application for analyzing an HTTP access log file.

  • Monday, July 23, 2018
  • by localheinz
  • Repository
  • 1 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

http-log

Build Status codecov Latest Stable Version Total Downloads, (*1)

Installation

Run, (*2)

$ composer global require localheinz/http-log

Usage

Run, (*3)

$ dashboard <path> --alert-threshold=<alert-threshold> --refresh-interval=<refresh-interval>

to render a dashboard., (*4)

Arguments

  • path (optional, defaults to /var/log/access.log), path to HTTP access log file

Options

  • alert-threshold (optional, defaults to 10), number of requests per second (an integer) which, when exceeded, triggers an alert
  • refresh-interval (optional, defaults to 10), number of seconds (an integer) after which the dashboard will be refreshed

Demo

Clone this repository., (*5)

$ git clone git@github.com:localheinz/http-log.git

Run, (*6)

$ cd http-log
$ composer install

Then run, (*7)

$ php demo/write.php

open a separate terminal in the same directory and run, (*8)

$ bin/dashboard

Contributing

Please have a look at CONTRIBUTING.md., (*9)

Code of Conduct

Please have a look at CODE_OF_CONDUCT.md., (*10)

The Versions