Created
December 23, 2015 18:55
-
-
Save nhoag/6d4dc33feb64c7c7fc29 to your computer and use it in GitHub Desktop.
Revisions
-
nhoag revised this gist
Dec 23, 2015 . 1 changed file with 6 additions and 6 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -2,11 +2,11 @@ cat access.log \ | awk -F' ' '{ time = substr($4, 2, 17); times[time] = time; bandwidth[time] += $10 } END { for (t in times) print times[t],bandwidth[t]/1024/1024 }' \ | column -t \ | sort -
nhoag created this gist
Dec 23, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ #!/bin/bash cat access.log \ | awk -F' ' '{ time = substr($4, 2, 17); times[time] = time; bandwidth[time] += $10 } END { for (t in times) print times[t],bandwidth[t]/1024/1024 }' \ | column -t \ | sort