I want to extract all logs between two timestamps. Some lines may not have the timestamp, but I want those lines also. In short, I want every line that falls under two time stamps. My log structure looks like:[2014-04-07 23:59:58] CheckForCallAction [ERROR] Exception caught in +CheckForCallAction :: null--Checking user--Post[2014-04-08 00:00:03] MobileAppRequestFilter [DEBUG] Action requested checkforcallSuppose I want to extract everything between 2014-04-07 23:00 and 2014-04-08 02:00.Please note the start time stamp or end time stamp may not be there in the log, but I want every line between these two time stamps.
How to extract logs between two time stamps
text processing;sed;awk;grep