#!/bin/sh

#tails the apache logs, discarding bot crap

#needs the complex regexp otherwise multiple greps seem to buffer the output - this is simplest on my poor little brane
tail --follow=name -n +0 /var/log/apache/access.log$1 | grep -v '^\(.*NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN.*\)\?\(.*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.*\)\?\(.*MSADC.*\)\?\(.*c+dir.*\)\?\(scuzzie.physics.usyd.edu.au\)\?\(ptr.wisenut.com\)\?\(209.202.148.35\)\?\(209.202.148.58\)\?\(crawl..googlebot.com\)\?\(trek.*.sv.av.com\)\?\(.*fastsearch.net\)\? '
