Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 911 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 911 Bytes

http-log

This command line tool watches a CLF HTTP access log and generates useful statistics about it.

./monitor.sh -h

Usage: application [OPTIONS]

Options:
  --log-file TEXT        Log file to monitor
  --alert-threshold INT  Alert threshold for requests per second
  --alert-window INT     Alert window for threshold
  -h, --help             Show this message and exit

If you run it with ./monitor.sh --log-file ./access.txt --alert-threshold 10 --alert-window 2 it will raise an alert if it registeres more than 10 requests/second on average for a time frame of 2 minutes.


Screenshot 2020-07-12 at 05 02 54