django-orchestra-test/scripts/services/webalizer.md

22 lines
483 B
Markdown
Raw Permalink Normal View History

2014-05-08 16:59:35 +00:00
Webalizer
=========
1. Install `vsftpd`
```bash
apt-get install webalizer
```
2. Modify Apache/Nginx log postrotate
```bash
for i in /home/httpd/webalizer/*.conf; do
file=$(grep ^LogFile "$i" | tr -s ' ' | cut -f2 -d ' ').1
if [ -f "$file" ]; then
/usr/bin/webalizer -q -c "$i" "$file" 2>&1 \
# Supress truncating warnings
| grep -v '^Warning: Truncating oversized ' >&2
fi
done
```