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
Requires
- php: ^7.2
- fzaninotto/faker: ^1.8.0
- kassner/log-parser: ^1.4.0
- localheinz/clock: ^1.0.0
- react/event-loop: ~0.4.3
- react/filesystem: ~0.1.0
- react/stream: ~0.4.6
- symfony/console: ^4.1.1
Requires (Dev)
- infection/infection: ~0.9.0
- localheinz/php-cs-fixer-config: ~1.14.1
- localheinz/test-util: ~0.7.0
- phpstan/phpstan: ~0.10.1
- phpstan/phpstan-strict-rules: ~0.10.0
- phpunit/phpunit: ^7.2.7
This package is auto-updated.
Last update: 2020-02-05 08:59:34 UTC
README
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 to10
), number of requests per second (an integer) which, when exceeded, triggers an alertrefresh-interval
(optional, defaults to10
), 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
.