--- confixx.orig/httpdtraffik.sh 2010-03-30 14:39:18.000000000 +0200 +++ confixx/httpdtraffik.sh 2010-03-30 14:35:07.000000000 +0200 @@ -49,21 +49,27 @@ $AWSTATS_SCRIPT -config=$USER -update >/dev/null fi + # ip4, a:b:c:(x*), *(:x1:x2:x3:x4:x5), a*:(:x*) + sed -ri -e 's/^([^ ]+) (([0-9]{1,3}\.){3})[0-9]{1,3} /\1 \20 /' \ + -e 's/^([^ ]+) (([0-9a-fA-F]{1,4}:){3})[0-9a-fA-F:]+ /\1 \2: /' \ + -e 's/^([^ ]+) ([0-9a-fA-F:]+)(:[0-9a-fA-F]{1,4}){5} /\1 \2:0:0:0:0:0 /' \ + -e 's/^([^ ]+) ([0-9a-fA-F:]*):(:[0-9a-fA-F]{1,4}){1,5} /\1 \2:: /' \ + "$HOME/log/access_log" if test "$DEBUG" = "1"; then echo "$ROTATESCRIPT $USER access" fi $ROTATESCRIPT $USER access if(test -d $BACKUPDIR/$USER) ; then if test "$DEBUG" = "1"; then - echo "$FIND $BACKUPDIR/$USER/ -atime +$LOGEXPIRE -type f -exec rm -f {} \;" + echo "$FIND $BACKUPDIR/$USER/ -ctime +$LOGEXPIRE -type f -exec rm -f {} \;" fi - $FIND $BACKUPDIR/$USER/ -atime +$LOGEXPIRE -type f -exec rm -f {} \; + $FIND $BACKUPDIR/$USER/ -ctime +$LOGEXPIRE -type f -exec rm -f {} \; fi if(test -d $HOMEDIR/$USER/log/old) ; then if test "$DEBUG" = "1"; then - echo "$FIND $HOMEDIR/$USER/log/old/ -atime +$LOGEXPIRE -type f -exec rm -f {} \;" + echo "$FIND $HOMEDIR/$USER/log/old/ -ctime +$LOGEXPIRE -type f -exec rm -f {} \;" fi - $FIND $HOMEDIR/$USER/log/old/ -atime +$LOGEXPIRE -type f -exec rm -f {} \; + $FIND $HOMEDIR/$USER/log/old/ -ctime +$LOGEXPIRE -type f -exec rm -f {} \; fi fi fi