Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.
/ http-log Public archive

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

Notifications You must be signed in to change notification settings

localheinz/http-log

Repository files navigation

http-log

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 [email protected]: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.

About

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

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages