Skip to content

Instantly share code, notes, and snippets.

@mstaack
Created March 6, 2016 23:42
Show Gist options
  • Save mstaack/cce6e07cb498f7ba816f to your computer and use it in GitHub Desktop.
Save mstaack/cce6e07cb498f7ba816f to your computer and use it in GitHub Desktop.
one-line webserverstats
00 00 * * * zcat `find /var/log/apache2/ -name "access.log.*.gz" -mtime -35` | goaccess > monthly-$(date +'%Y.%m').html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment