Below is Script to scan the errorlist file (errorlist file includes a list of errors) with sererv.log file (sererv.log file should contain data of recent 15mins )
but my requirement is I should get the recent logs i.e. cmd to capture only recent 15mins data logged from sererv.log file then scan with errorlist file
Note : sererv.log file date format is 2015-08-28 04:10:00
cat "errorlist" | while read line
do
LINE=`echo $line`
echo "$line" >> SCRIPT.line
grep -i "$LINE" "server.log_date" >> SCRIPT.grep
done
fi