https://github.com/wesleyac/logmon
A script to ingest a HTTP server log and give live stats about it
https://github.com/wesleyac/logmon
Last synced: 9 months ago
JSON representation
A script to ingest a HTTP server log and give live stats about it
- Host: GitHub
- URL: https://github.com/wesleyac/logmon
- Owner: WesleyAC
- Created: 2017-11-29T02:08:42.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-29T03:23:10.000Z (over 8 years ago)
- Last Synced: 2025-09-12T09:54:49.181Z (10 months ago)
- Language: Python
- Size: 40 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `logmon`

`logmon` is a program to ingest a W3C-formatted HTTP access log and display stats about it.
# Usage
`./main.py /path/to/access.log`
Optional arguments:
| Argument | Description |
| ----------------- | --- |
| -h, --help | show the help message and exit |
| --time-window | what time window to view stats over (seconds, default=∞) |
| --update-interval | how often to update the screen (seconds, default=10) |
| --alert-window | what time window to use for high traffic alerts (seconds, default=120) |
| --alert-threshold | how many pageviews need to occur in the alert_window to trigger an alert (default=500) |
# Features
* Displays top pages
* Alerts when total traffic goes over a certain value
* Shows total number of pageviews
* Shows the number of unique IP addresses in the log