Skip to content

Instantly share code, notes, and snippets.

@jasperf
Last active November 15, 2023 05:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasperf/e61a105ddab714e92d188567b05590f2 to your computer and use it in GitHub Desktop.
Save jasperf/e61a105ddab714e92d188567b05590f2 to your computer and use it in GitHub Desktop.
awk '($9 ~ /200/) { i++;sum+=$10;max=$10>max?$10:max; } END { printf("Maximum: %d\nAverage: %d\n",max,i?sum/i:0); }' /var/www/vhosts/site.nl/logs/access_ssl_log
// results example:
// Maximum: 1675502
// Average: 12756
@jasperf
Copy link
Author

jasperf commented Nov 15, 2023

Here we had a peak at 1676K and average of 13K . Peak we seem to have had on WP Rocket Cache Purge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment