I am reading a log file line by line (using BufferedReader) & extracting data from each line. The log file has some ip, timestamp on each line & the service that was invoked at that time & the status of the call.
Sample line from the log:
10.435.234.220 - - [14/Jul/2014:08:07:07 -0700] "GET /resources/getQuote HTTP/1.1" 200 962 10.435.235.123 - - [14/Jul/2014:09:31:41 -0700] "GET /resources/getOpp HTTP/1.1" 200 962
The above is working fine.
But the next time I run the code, i want to extract data only from lines after the timestamp that was read the last time.
Say, The first time, it extracted data till the line with timestamp 14/Jul/2014:08:07:07, the next time, i want to extract data after that line. How to do this. Any help will be great.