Need shell script to get Alert log errors that occurred in past 24 hours & also b/w given time duration. I am using (Red Hat 4.1.2) and 188.8.131.52
For example: If we run the script it should prompt me for date/time, it should fetch me the errors occured during that time.
It should fetch me the errors occured at this point of time from the alert log. If there are no errors just display a message "no errors" and display the actual text from alert log at that time as,
Tue Nov 27 08:20:43 2012
Archived Log entry 8354 added for thread 1 sequence 2710 ID 0x1ea92ad6 dest 1