/usr/share/doc/webdruid/examples/gerasiov.txt is in webdruid 0.5.4-14build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | Example from Alexander Gerasiov (Wishlist bug report #363067):
--------------------------------------------------------------
So here is an example of crontab script I'm using on my host:
=============
$cat /etc/cron.daily/webdruid
#!/bin/sh
# /etc/cron.daily/webdruid: webdruid daily maintenance script
WEBDRUID_BIN=/usr/bin/webdruid
WEBDRUID_SITELIST=/etc/webdruid/site.list
LOG_DIR=/var/log/apache2
REPORT_ROOT=/var/www/webdruid/
cat "$WEBDRUID_SITELIST" | while read HOSTNAME NAME;do (
if [ ! -d "${LOG_DIR}/${NAME}" ];then exit 1;fi
if [ ! -d "${REPORT_ROOT}${NAME}" ];then
mkdir "${REPORT_ROOT}${NAME}"
fi
${WEBDRUID_BIN} -Q -n "${HOSTNAME}" -o "${REPORT_ROOT}${NAME}"
"${LOG_DIR}/${NAME}/access.log.1"
) done
exit 0
=============
Where in /etc/webdruid/site.list there are lines like
exampledomain1.com example1
exampledomain2.com example2
And my apache generate logs for that domains in
/var/log/apache2/example1/access.log and
/var/log/apache2/example2/access.log
I didn't hooked it to logrotate, because my logs rotates not too often
(at least for some of my sites), but I just know that their rotate period
is not less than 1 day.
PS The only change from default webdruid installation is
"Incremental yes" in /etc/webdruid/webdruid.conf
PPS As my apache generate logs in subdir of /var/log/apache2 I've added
/var/log/apache2/*.log /var/log/apache2/*/*.log
^^^^^^^^^^^^^^^^^^^^^^^^
in /etc/logrotate.d/apache2
(The same idea was used for apache1.3 previously.)
|