From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 4730F13800E for ; Thu, 9 Aug 2012 14:43:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2521FE0662; Thu, 9 Aug 2012 14:42:50 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id EDC02E0662 for ; Thu, 9 Aug 2012 14:42:49 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 638E61B4033 for ; Thu, 9 Aug 2012 14:42:49 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 2BE8CE5439 for ; Thu, 9 Aug 2012 14:42:48 +0000 (UTC) From: "Theo Chatzimichos" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Theo Chatzimichos" Message-ID: <1344523371.31c73dd97e33c5603cd01a1dabe779f6fb5c6542.tampakrap@gentoo> Subject: [gentoo-commits] proj/planet-gentoo:master commit in: scripts/ X-VCS-Repository: proj/planet-gentoo X-VCS-Files: scripts/error-report X-VCS-Directories: scripts/ X-VCS-Committer: tampakrap X-VCS-Committer-Name: Theo Chatzimichos X-VCS-Revision: 31c73dd97e33c5603cd01a1dabe779f6fb5c6542 X-VCS-Branch: master Date: Thu, 9 Aug 2012 14:42:48 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 6fba5a9d-e68b-40ec-b56b-7f792e4edbb9 X-Archives-Hash: a7e9b1782f2c01315a704a5cc68fb2d5 commit: 31c73dd97e33c5603cd01a1dabe779f6fb5c6542 Author: Theo Chatzimichos gentoo org> AuthorDate: Thu Aug 9 14:42:51 2012 +0000 Commit: Theo Chatzimichos gentoo org> CommitDate: Thu Aug 9 14:42:51 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/planet-gentoo.git;a=commit;h=31c73dd9 Grep errors in the logs of a week, the script will run weekly after that --- scripts/error-report | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/scripts/error-report b/scripts/error-report index 983c68d..9a28f37 100755 --- a/scripts/error-report +++ b/scripts/error-report @@ -5,5 +5,5 @@ for instance in planet universe; do echo "ERRORS in ${instance}" - find /var/log/planet.gentoo.org/${instance} -type f -name "$(date +%Y-%m-%d)*" -exec grep "ERROR" {} \; | sort | uniq -c + find /var/log/planet.gentoo.org/${instance} -type f -atime -7 -exec grep "ERROR" {} \; | grep -v "Errno" | sort | uniq -c done