Hi below is my current scripting which will monitor for any errors in the application
logfile="/tmp/application.log"
output=$(grep "ERROR" $logfile)
if [ -n "$output" ]
then
echo "found- send email"
else
echo "not found"
fi
Now I wanted the script NOT TO MONITOR for one of the occurence of the error which is a known issue
Could you please help me as how can I set this up
The error string I wanted to EXCLUDE from monitoring is below
" ERROR - Error while reading from socket
java.net.SocketException: Connection reset "