diff options
author | Theo Chatzimichos <tampakrap@gentoo.org> | 2012-08-09 16:42:51 +0200 |
---|---|---|
committer | Theo Chatzimichos <tampakrap@gentoo.org> | 2012-08-09 16:42:51 +0200 |
commit | 31c73dd97e33c5603cd01a1dabe779f6fb5c6542 (patch) | |
tree | 0c72ab6883aa566c6d6aa8513190ed6585d059c6 /scripts | |
parent | Make it executable, and print a message on the instance running (diff) | |
download | planet-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-x | scripts/error-report | 2 |
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 |