From 446a9c75ff2cf60db40cc2cf7aeb4a96c086d0c6 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Mon, 11 Jan 2016 14:19:30 +0200 Subject: analyse-logs.sh: Filter out accesses from IPv6 localhost. These accesses are for monitoring purposes and don't contribute to real stats. At the same time, dnshistory doesn't support IPv6 addresses, and presence of such entires leads to excessive warnings sent via cron. This is stopgap measure to stop them. Change-Id: Ibecd25ec1430fa5446df65bade324e98c1557f8d --- analyse-logs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'analyse-logs.sh') diff --git a/analyse-logs.sh b/analyse-logs.sh index 0b72b6b..42cce7c 100755 --- a/analyse-logs.sh +++ b/analyse-logs.sh @@ -413,10 +413,10 @@ extract_logs () # preprocessed-*-2013-access.log.gz x=`ls $INPUT_PATH/$RAW_LOG_NAME | wc -l` if [ x > 0 ] ; then - zcat $INPUT_PATH/$RAW_LOG_NAME > $WORK_PATH/$TMP_LOG_NAME if [ $DEBUG -eq $TRUE ] ; then echo "$WEB_NAME making access.log by zcat $INPUT_PATH/$RAW_LOG_NAME" fi + zcat $INPUT_PATH/$RAW_LOG_NAME | grep -v "::1" > $WORK_PATH/$TMP_LOG_NAME fi # Previous years logs preprocessed into a single compressed file to save processing time. if [ $DEBUG -eq $TRUE ] ; then -- cgit v1.2.3