localheinz/http-log

This package is abandoned and no longer maintained. No replacement package was suggested.

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

dev-master 2018-07-23 06:17 UTC

This package is auto-updated.

Last update: 2020-02-05 08:59:34 UTC


README

Build Status codecov Latest Stable Version Total Downloads

Installation

Run

$ composer global require localheinz/http-log

Usage

Run

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

to render a dashboard.

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.

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

Run

$ cd http-log
$ composer install

Then run

$ php demo/write.php

open a separate terminal in the same directory and run

$ bin/dashboard

Contributing

Please have a look at CONTRIBUTING.md.

Code of Conduct

Please have a look at CODE_OF_CONDUCT.md.