Skip to content

A command line tool for monitoring http access logs

Notifications You must be signed in to change notification settings

rashiq/http-log

Repository files navigation

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

About

A command line tool for monitoring http access logs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published