diff options
author | Paul Sokolovsky <paul.sokolovsky@linaro.org> | 2016-01-11 14:19:30 +0200 |
---|---|---|
committer | Paul Sokolovsky <paul.sokolovsky@linaro.org> | 2016-01-11 14:19:30 +0200 |
commit | 446a9c75ff2cf60db40cc2cf7aeb4a96c086d0c6 (patch) | |
tree | 10392cb2fa36f1e6d440506a9c488380571a368c | |
parent | ecfb93704c94c20949127933f7e6c710c0b635d5 (diff) |
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
-rwxr-xr-x | analyse-logs.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |