Created
April 25, 2013 08:39
-
-
Save fedir/5458356 to your computer and use it in GitHub Desktop.
Parsing access logs to find number of accesses by date, by hour and by minute # Inspired by https://twitter.com/climagic/status/327124836914712576
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
# Number of accesses, daily | |
zcat access.log.1.gz | awk {'print $4'} | cut -c2-12 | sort | uniq -c | |
# Number of accesses, hourly | |
zcat access.log.1.gz | awk {'print $4'} | cut -c2-15 | sort | uniq -c | |
# Number of accesses, minutely | |
zcat access.log.1.gz | awk {'print $4'} | cut -c2-18 | sort | uniq -c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment