Skip to content

Instantly share code, notes, and snippets.

@maninhat
Created December 3, 2018 08:18
Show Gist options
  • Save maninhat/b9b3716ff27e5c734db7c7134be971cf to your computer and use it in GitHub Desktop.
Save maninhat/b9b3716ff27e5c734db7c7134be971cf to your computer and use it in GitHub Desktop.
awstats
docker run --rm -v /root/stat2018-12-03:/web-logs:ro -v awstats-db:/var/lib/awstats \
-e LOG_FORMAT="%host %other %logname %time1 %methodurl %code %bytesd" \
openmicroscopy/awstats /web-logs/access.log
78.40.217.219 - - [14/Mar/2016:15:10:14 +0300] "POST /index.php?t=1457957411 HTTP/1.1" 200 6894
https://github.com/openmicroscopy/awstats-docker
http://www.internetofficer.com/awstats/log-format/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment