Created
February 12, 2016 19:01
-
-
Save josy1024/c71ec37d2172060a9364 to your computer and use it in GitHub Desktop.
relaxed log analyse from logfiles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# nach_fehlern_suchen.sh logfile | |
if cat $1 | grep "Fehler" ; then | |
gstatslog ERROR_DONE "$code $logfile" | |
elif cat $1 | grep "Error" ; then | |
gstatslog ERROR_DONE "$code $logfile" | |
elif cat $1 | grep "Warnung" ; then | |
gstatslog WARN_DONE "$code $logfile" | |
else | |
gstatslog OK_DONE $code | |
fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment