18 | | Documentation need completing. |
| 18 | PenguinServer is set up to get a copy of the Nginx awstats.log file very day via logrotate, see AwStatsInstall#Copyingthelogstopenguin and on Penguin there is a puffin user account which has this crontab: |
| 19 | |
| 20 | {{{ |
| 21 | 05 07 * * * /usr/local/bin/puffin-webalizer |
| 22 | }}} |
| 23 | |
| 24 | Which runs {{{/usr/local/bin/puffin-webalizer}}} which contains: |
| 25 | |
| 26 | {{{ |
| 27 | #!/bin/bash |
| 28 | |
| 29 | DATE=$(date "+%Y-%m-%d") |
| 30 | LOG_FILE=/home/puffin/nginx/puffin-nginx-$DATE.log |
| 31 | STATS_DIR=/web/penguin.transitionnetwork.org/www/webalizer/puffin |
| 32 | |
| 33 | cd $STATS_DIR |
| 34 | webalizer -p -n transitionnetwork.org -o $STATS_DIR $LOG_FILE |
| 35 | }}} |
| 36 | |
| 37 | These logs are password protected and available at https://penguin.transitionnetwork.org/webalizer/puffin/ |