https://github.com/localheinz/http-log
:closed_book: Provides a console application for analyzing an HTTP access log file.
https://github.com/localheinz/http-log
access-logs http tail
Last synced: 21 days ago
JSON representation
:closed_book: Provides a console application for analyzing an HTTP access log file.
- Host: GitHub
- URL: https://github.com/localheinz/http-log
- Owner: localheinz
- Archived: true
- Created: 2018-07-22T20:38:06.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-23T06:17:50.000Z (over 7 years ago)
- Last Synced: 2024-05-02T00:53:10.337Z (almost 2 years ago)
- Topics: access-logs, http, tail
- Language: PHP
- Size: 109 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# http-log
[](https://travis-ci.org/localheinz/http-log)
[](https://codecov.io/gh/localheinz/http-log)
[](https://packagist.org/packages/localheinz/http-log)
[](https://packagist.org/packages/localheinz/http-log)
## Installation
Run
```
$ composer global require localheinz/http-log
```
## Usage
Run
```
$ dashboard --alert-threshold= --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`](.github/CONTRIBUTING.md).
## Code of Conduct
Please have a look at [`CODE_OF_CONDUCT.md`](.github/CODE_OF_CONDUCT.md).