summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Chatzimichos <tampakrap@gentoo.org>2012-08-09 16:42:51 +0200
committerTheo Chatzimichos <tampakrap@gentoo.org>2012-08-09 16:42:51 +0200
commit31c73dd97e33c5603cd01a1dabe779f6fb5c6542 (patch)
tree0c72ab6883aa566c6d6aa8513190ed6585d059c6 /scripts
parentMake it executable, and print a message on the instance running (diff)
downloadplanet-31c73dd97e33c5603cd01a1dabe779f6fb5c6542.tar.gz
planet-31c73dd97e33c5603cd01a1dabe779f6fb5c6542.tar.bz2
planet-31c73dd97e33c5603cd01a1dabe779f6fb5c6542.zip
Grep errors in the logs of a week, the script will run weekly after that
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/error-report2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/error-report b/scripts/error-report
index 983c68db..9a28f37d 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