2005-07-13 01:05:03 +02:00
|
|
|
#!/bin/bash
|
|
|
|
set -u
|
|
|
|
|
|
|
|
VERSIONS="17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0"
|
|
|
|
SRC="logs/access.log"
|
|
|
|
DEST="access.log.all"
|
|
|
|
|
|
|
|
#[ -e ${SRC}.1.gz ] && gzip $SRC ${SRC}.1.gz
|
|
|
|
|
2006-01-08 18:42:26 +01:00
|
|
|
## nur falls die logs auf mehrere dateien verteilt sind,
|
|
|
|
#for vers in ${VERSIONS[@]}
|
|
|
|
#do
|
|
|
|
#file=${SRC}.${vers}.gz
|
|
|
|
#echo $file
|
|
|
|
#zcat $file >> $DEST
|
|
|
|
#echo -e "\n" >> $DEST
|
|
|
|
#done
|
2005-07-13 01:05:03 +02:00
|
|
|
|
2006-01-08 18:42:26 +01:00
|
|
|
## ein paar ersedzungen
|
2005-07-13 01:05:03 +02:00
|
|
|
sed '/Python-urllib/d' $DEST > ${DEST}.a
|
|
|
|
sed '/\"Wget\/1\.9\.1\"/d' $DEST.a > ${DEST}.b
|
|
|
|
sed '/U\;\ Nessus/d' $DEST.b > ${DEST}.c
|
|
|
|
sed '/action=rss/d' $DEST.c > ${DEST}.d
|
|
|
|
sed 's/^/127.0.0.1 /' $DEST.d > ${DEST}.e
|
|
|
|
|
2006-01-08 18:42:26 +01:00
|
|
|
# den report gengerieren
|
|
|
|
visitors --prefix https://systemausfall.org -XKUWDOBT -m 30 ${DEST}.e -o html > ${SRC}_sao_report_raw.html
|
|
|
|
|
2005-07-13 01:05:03 +02:00
|
|
|
|