Reg scanning time based log file

Hi,
I have a requirement to scan Oracle's alert log file. This file logs all event for Oracle database and each line will have timestamp followed by messages (which might be one or more lines).
Example.
Thu Aug 15 17:35:59 2013
VKTM detected a time drift. Please check trace file for more details.

I have a requirement to scan this log to fine last 5 minutes worth of data entered on this. Could you please help me with the same.

Thanks in advance for your help.

Thanks,
Manick.

Very similar request to this Pick the last one hour lines from log matching this pattern.

If your OS supports -d option of date you could try:

awk -F'[ :]' $(date -d "-5 min" "+-v Y=%Y -v D=%d -v M=%-m -v H=%-H -v m=%-M -v s=%-S") '

BEGIN {
  split("Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec", mths, ",")
  for(i=1;i<=12;i++) mt[mths]=i
}
$7+0 > Y ||
$7+0 == Y && mt[$2]>M ||
$7+0 == Y && mt[$2] == M && $3+0 > D ||
$7+0 == Y && mt[$2] == M && $3+0 == D && $4+0>H ||
$7+0 == Y && mt[$2] == M && $3+0 == D && $4+0 == H && $5+0 > m||
$7+0 == Y && mt[$2] == M && $3+0 == D && $4+0 == H && $5+0 == m && $6+0 > s { v=1 }
v' logfile