Add ignore IP panel and local IP
This commit is contained in:
parent
cce33a471a
commit
9cdf5a70ec
|
@ -75,7 +75,7 @@ daily (){
|
|||
do
|
||||
info "Generate stat for ${file}"
|
||||
domain=$(echo ${file} | sed "s/\.access\.log.*//g")
|
||||
goaccess --output=${HTML_DAY_FILE}/${domain}-$(date --date='1 days ago' '+%Y-%m-%d').html --std-geoip --anonymize-ip --ignore-crawlers --log-format=COMBINED ${file}
|
||||
goaccess --output=${HTML_DAY_FILE}/${domain}-$(date --date='1 days ago' '+%Y-%m-%d').html --ignore-panel=HOSTS --exclude-ip 10.0.0.0/8 --std-geoip --anonymize-ip --ignore-crawlers --log-format=COMBINED ${file}
|
||||
done
|
||||
cd /
|
||||
rm -rf ${TMP_LOG_PATH}
|
||||
|
@ -94,7 +94,7 @@ weekly (){
|
|||
do
|
||||
info "Generate stat for ${file}"
|
||||
if [ $(ls ${file}".access.log."* | wc -l ) -eq 7 ]; then
|
||||
goaccess --output=${HTML_WEEK_FILE}/${file}.html --std-geoip --anonymize-ip --ignore-crawlers --log-format=COMBINED ${file}".access.log."{1,2,3,4,5,6,7}
|
||||
goaccess --output=${HTML_WEEK_FILE}/${file}.html --ignore-panel=HOSTS --exclude-ip 10.0.0.0/8 --std-geoip --anonymize-ip --ignore-crawlers --log-format=COMBINED ${file}".access.log."{1,2,3,4,5,6,7}
|
||||
fi
|
||||
done
|
||||
cd /
|
||||
|
@ -117,7 +117,7 @@ monthly () {
|
|||
do
|
||||
info "Generate stat for ${file}"
|
||||
NUMBER_FILES=$(ls ${file}".access.log."* | wc -l )
|
||||
eval goaccess --output=${HTML_MONTH_FILE}/${file}.html --std-geoip --anonymize-ip --ignore-crawlers --log-format=COMBINED ${file}".access.log."{1..${NUMBER_FILES}}
|
||||
eval goaccess --output=${HTML_MONTH_FILE}/${file}.html --ignore-panel=HOSTS --exclude-ip 10.0.0.0/8 --std-geoip --anonymize-ip --ignore-crawlers --log-format=COMBINED ${file}".access.log."{1..${NUMBER_FILES}}
|
||||
done
|
||||
cd /
|
||||
rm -rf ${TMP_LOG_PATH}
|
||||
|
@ -139,7 +139,7 @@ yearly () {
|
|||
do
|
||||
info "Generate stat for ${file}"
|
||||
NUMBER_FILES=$(ls ${file}".access.log."* | wc -l )
|
||||
eval goaccess --output=${HTML_YEAR_FILE}/${file}.html --std-geoip --anonymize-ip --ignore-crawlers --log-format=COMBINED ${file}".access.log."{1..${NUMBER_FILES}}
|
||||
eval goaccess --output=${HTML_YEAR_FILE}/${file}.html --ignore-panel=HOSTS --exclude-ip 10.0.0.0/8 --std-geoip --anonymize-ip --ignore-crawlers --log-format=COMBINED ${file}".access.log."{1..${NUMBER_FILES}}
|
||||
done
|
||||
cd /
|
||||
rm -rf ${TMP_LOG_PATH}
|
||||
|
|
Loading…
Reference in New Issue