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.

Revisions

  1. maninhat created this gist Dec 3, 2018.
    8 changes: 8 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    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/