Eric Wilhelm > ApacheLog-Parser-v0.0.1 > cron.loghack

Download:
ApacheLog-Parser-v0.0.1.tar.gz

Annotate this POD

Website

View/Report Bugs
Source  

NAME ^

cron.loghack - fetch, import, archive

Setup ^

  cd /disks/logs/
  mkdir mysite.{repo,archive,incoming}
  mkdir mysite.{repo,archive,incoming}/{server1,server2}
  mkdir mysite.repo/.config
  vim /disks/logs/mysite/.config/report.conf

Then your crontab entry is:

  cron.loghack --site mysite --home /disks/logs
    --path /var/log/apache2/foo.access.log.N.gz \
    --number 2 \
    --quiet

Requires rsync.

syntax highlighting: