Created
November 9, 2022 10:22
-
-
Save tasiot/a9f346e97e1030044d3405133c469a47 to your computer and use it in GitHub Desktop.
Show bandwidth for a month, using apache logs
This file contains 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
# Count (in GB) the bandwidth using 10th field in apache log (content-length) | |
zcat /var/logs/apache2/*.gz | awk '$4~/Oct\/2022/ {SUM+=$10}END{print SUM/1024/1024/1024}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment