Patent ID: 7778974

Claim:
A method to archive log entries created by a data storage system, comprising the steps of: providing a data storage system comprising first memory and a library log encoded in said first memory; writing a plurality of log entries to said library log, wherein each log entry comprises a log entry time; encoding a log archive in a second memory, wherein said second memory is external to said data storage system; setting a time T 0 equal to current time; at time T 0 , copying to said log archive said plurality of log entries written to said library log; determining a time T 1 when an earliest log entry was written to said library log; determining a time T 2 when a latest log entry was written to said library log; calculating a log interval T INT equal to (T 2 −T 1 ); setting a retrieval time equal to (T 0 +T INT ); determining whether to perform an intermediate inspection of the library log; when performing an intermediate inspection of the library log, determining a number (N) of log entries written to library log retrieved at time T 0 ; establishing a previous log filling rate equal to (N)/T INT ; setting an intermediate sampling interval T S , wherein said intermediate sampling interval is less than said log interval; setting an intermediate sampling time, wherein said intermediate sampling time equals (T 0 +T S ); when current time equals said intermediate sampling time, inspecting the library log created after time T 0 ; determining a number (M) of log entries written to the library log after time T 0 ; establishing a current log filling rate equal to (M)/T S ; determining whether said current log filling rate is greater than said previous log filling rate; and when said current log filling rate is greater than said previous log filling rate, adjusting said log interval T INT to be less than (T 2 −T 1 ).