Created
December 1, 2022 13:18
-
-
Save blizzz/1a8d9defd4c33a99c0b480446f2bc2c6 to your computer and use it in GitHub Desktop.
Apache HTTP request statuus of the last minute
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grep $(date -d 'last minute' '+%d/%b/%Y:%H:%M') /var/log/apache2/access.log | grep -oE 'HTTP/..." [0-9]{3}' | awk '{ print $2; }' | sort | uniq -c | sort -n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment