Run
$ composer global require localheinz/http-log
Run
$ dashboard <path> --alert-threshold=<alert-threshold> --refresh-interval=<refresh-interval>
to render a dashboard.
path
(optional, defaults to/var/log/access.log
), path to HTTP access log file
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
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
Please have a look at CONTRIBUTING.md
.
Please have a look at CODE_OF_CONDUCT.md
.