# US 2008/0301200 A1 · Log file amnesia detection

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2008/0301200 A1
- Document ID: US20080301200A1
- Status: Published application
- Kind: A1
- Application number: 11/756,974
- Filed: 2007-06-01
- Published: 2008-12-04
- Earliest claimed: 2007-06-01
- Assignees: Microsoft Corporation
- Inventors: John D. Doty; Craig A. Critchley
- Web page: https://patentgrep.com/patent/US20080301200A1

## CPC

- G06F 11/004: {Error avoidance (G06F11/07 and subgroups take precedence)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Log file amnesia detection is accomplished by associating a unique identifier with each record in a log file, where each record receives a unique log sequence number. Multiple time intervals are associated with the log file with different events triggering the beginning of a new time interval. The log file implementation marks the beginnings of these multiple time intervals with a unique identifier. Every time an event occurs that triggers a new time interval a new unique identifier is generated. This unique identifier will be associated with the records in the log file that are created thereafter until the next unique identifier gets generated, marking the beginning of a next time interval. Log file amnesia can be identified when a log client requests information about a record and then comparing the unique identifier and log sequence number of the record with all records in the log file.

## Claims

### Claim 1

A method for operation of a computer for detecting log file amnesia, the computer including a processor and a memory, and a log file implementation and a log client running in the memory, the method comprising the steps of:
(a) creating by the log client implementation a log file and a first unique identifier for a first time interval for said log file;
(b) writing a first set of one or more records to said log file, wherein each of said one or more records is assigned a sequential log sequence number and annotated with said first unique identifier;
(c) detecting by the log client implementation a defined triggering event indicating a beginning of a next time interval for said log file;
(d) creating a next unique identifier for said next time interval for the log file;
(e) writing a next set of one or more records to said log file, wherein each of said one or more records is assigned said sequential log sequence number and annotated with said next unique identifier;
(f) receiving a request from the log client for validation of a record, wherein said record received from the log client has a log sequence number and a unique identifier;
(g) comparing said log sequence number and said unique identifier for said record against said first set of one or more records and said next set of one or more records to determine if there is a match; and
(h) when said match is not found, returning a log file amnesia message to the log client.

### Claim 2 (depends on 1)

The method according to claim 1 wherein said creating step (a) and said creating step (d) each further comprise at least one of the steps of:
using an algorithm to generate a 16-byte (128-bit) globally unique identifier for said first unique identifier and said next unique identifier;
generating a 64-bit timestamp; or
generating a 32-bit timestamp.

### Claim 3 (depends on 1)

The method according to claim 1 wherein said detecting step (c) further comprises the step of:
detecting at least a one of a creation of the log file, a reset of the log file, a restoration of the log file from a backup, a writing of a record to the log file, computer reboot, or any other event defined to be a triggering event.

### Claim 4 (depends on 1)

The method according to claim 1 further comprising the step of:
when said match is found, returning an okay message to the log client.

### Claim 5 (depends on 1)

The method according to claim 1 further comprising the step of:
running the log file implementation from within an operating system of the computer.

### Claim 6 (depends on 1)

The method according to claim 1 further comprising the step of:
running the log file implementation from within an application running in the memory of the computer.

### Claim 7 (depends on 1)

The method according to claim 1 further comprising the step of:
running the log client from within an application running in the memory of the computer.

### Claim 8

A computer system for detecting log file amnesia, the system comprising:
a processor;
a memory accessible by said processor;
a log file implementation running in said memory;
a log client running in said memory; and
a log file created by said log file implementation, wherein said log file has:
a first unique identifier for a first time interval for said log file, and a first set of one or more records, wherein each of said one or more records is assigned a sequential log sequence number and is annotated with said first unique identifier; and
when a defined triggering event is detected by said log file implementation, a next unique identifier for a next time interval for said log file, and a next set of one or more records, wherein each of said one or more records is assigned said sequential log sequence number and is annotated with said next unique identifier; and
a log file amnesia message, wherein said log client implementation receives requests from said log client for validation of one or more records, wherein each of said one or more records received from the log client has a log sequence number and a unique identifier, and said log client implementation compares said log sequence number and said unique identifier for each of said one or more records against said first set of one or more records and said next set of one or more records to determine if there is a match, and when said match is not found, said log client implementation returns said log file amnesia message to said log client.

### Claim 9 (depends on 8)

The system according to claim 8 further comprising at least a one of:
an algorithm for generating a 16-byte (128-bit) globally unique identifier for said first unique identifier and said next unique identifier;
a software module for generating a 32-bit timestamp; or
a software module for generating a 64-bit timestamp.

### Claim 10 (depends on 8)

The system according to claim 8 wherein said defined triggering event is at least a one of a creation of the log file, a reset of the log file, a restoration of the log file from a backup, a writing of a record to the log file, computer reboot, or any other event defined to be a triggering event.

### Claim 11 (depends on 8)

The system according to claim 8 further comprising:
an okay message, wherein when said match is found, said log client implementation returns said okay message to said log client.

### Claim 12 (depends on 8)

The system according to claim 8 further comprising:
an operating system of said computer, wherein said log file implementation runs from within said operating system.

### Claim 13 (depends on 8)

The system according to claim 8 further comprising:
an application running in the memory of the computer, wherein said log file implementation and said log client run from within said application.

### Claim 14

A tangible computer readable storage medium storing instructions that, when executed by a processor, cause the processor to perform a method for detecting log file amnesia, the method comprising the steps of:
(a) creating a log file and a first unique identifier for a first time interval for said log file;
(b) writing a first set of one or more records to said log file, wherein each of said one or more records is assigned a sequential log sequence number and annotated with said first unique identifier;
(c) detecting a defined triggering event indicating a beginning of a next time interval for said log file;
(d) creating a next unique identifier for said next time interval for the log file;
(e) writing a next set of one or more records to said log file, wherein each of said one or more records is assigned said sequential log sequence number and annotated with said next unique identifier;
(f) receiving a request for validation of a record, wherein said record received has a log sequence number and a unique identifier;
(g) comparing said log sequence number and said unique identifier for said record against said first set of one or more records and said next set of one or more records to determine if there is a match; and
(h) when said match is not found, returning a log file amnesia message to the log client.

### Claim 15 (depends on 14)

The computer readable storage medium according to claim 14 wherein said creating step (a) and said creating step (d) each further comprise at least one of the steps of:
using an algorithm to generate a 16-byte (128-bit) globally unique identifier for said first unique identifier and said next unique identifier;
generating a 64-bit timestamp; or
generating a 32-bit timestamp.

### Claim 16 (depends on 14)

The computer readable storage medium according to claim 14 wherein said detecting step (c) further comprises the step of:
detecting at least a one of a creation of the log file, a reset of the log file, a restoration of the log file from a backup, a writing of a record to the log file, computer reboot, or any other event defined to be a triggering event.

### Claim 17 (depends on 14)

The computer readable storage medium according to claim 14 further comprising the step of:
when said match is found, returning an okay message to the log client.

### Claim 18 (depends on 14)

The computer readable storage medium according to claim 14 further comprising the step of:
running the log file implementation from within an operating system of the computer.

### Claim 19 (depends on 14)

The computer readable storage medium according to claim 14 further comprising the step of:
running the log file implementation from within an application running in the memory of the computer.

### Claim 20 (depends on 14)

The computer readable storage medium according to claim 14 further comprising the step of:
running the log client from within an application running in the memory of the computer.

### Claim 21

A method for operation of a computer for detecting log file amnesia, the computer including a processor and a memory, and a log file implementation and a log client running in the memory, the method comprising the steps of:
(a) creating by the log client implementation a log file and a first unique identifier for a first time interval for said log file, wherein said first unique identifier is stored in the memory;
(b) writing a first set of one or more records to said log file, wherein each of said one or more records is assigned a sequential log sequence number and a first of said one or more records is annotated with said first unique identifier forming a first begin interval record;
(c) detecting by the log client implementation a defined triggering event indicating a beginning of a next time interval for said log file;
(d) creating a next unique identifier for said next time interval for the log file, wherein said next unique identifier is stored in the memory in place of said first unique identifier;
(e) writing a next set of one or more records to said log file, wherein each of said one or more records is assigned said sequential log sequence number and a first of said one or more records is annotated with said next unique identifier forming a next begin interval record;
(f) receiving a request from the log client for validation of a record, wherein said record received from the log client has a log sequence number;
(g) scanning said log file backward, beginning from said log sequence number for said record, until said first begin interval record or said next begin interval record is found;
(h) reading said first or next unique identifier from said first begin interval record or said next begin interval record found, forming a log sequence number/unique identifier pair for said record;
(i) comparing said log sequence number/unique identifier pair determined for said record against said first set of one or more records and said next set of said one or more records to determine if there is a match; and
(j) when said match is not found, returning a log file amnesia message to the log client.

### Claim 22 (depends on 21)

The method according to claim 21 wherein said creating step (a) and said creating step (d) each further comprise at least one of the steps of:
using an algorithm to generate a 16-byte (128-bit) globally unique identifier for said first unique identifier and said next unique identifier;
generating a 64-bit timestamp; or
generating a 32-bit timestamp.

### Claim 23 (depends on 21)

The method according to claim 21 wherein said detecting step (c) further comprises the step of:
detecting at least a one of a creation of the log file, a reset of the log file, a restoration of the log file from a backup, a writing of a record to the log file, computer reboot, or any other event defined to be a triggering event.

### Claim 24 (depends on 21)

The method according to claim 21 further comprising the step of:
when said match is found, returning an okay message to the log client.

### Claim 25

A computer system for detecting log file amnesia, the system comprising:
a processor;
a memory accessible by said processor;
a log file implementation running in said memory;
a log client running in said memory; and
a log file created by said log file implementation, wherein said log file has:
a first unique identifier for a first time interval for said log file, and a first set of one or more records, wherein each of said one or more records is assigned a sequential log sequence number and a first of said one or more records is annotated with said first unique identifier forming a first begin interval record, and said first unique identifier is stored in the memory; and
when a defined triggering event is detected by said log file implementation, a next unique identifier for a next time interval for said log file, and a next set of one or more records, wherein each of said one or more records is assigned said sequential log sequence number and a first of said one or more records is annotated with said next unique identifier forming a next begin interval record, wherein said next unique identifier is stored in the memory in place of said first unique identifier; and
a log file amnesia message, wherein said log client implementation receives requests from said log client for validation of one or more records, wherein each of said one or more records received from the log client has a log sequence number and a unique identifier obtained by scanning said log file backward, beginning from said log sequence number for the record, until said first begin interval record or said next begin interval record is found, forming a log sequence number/unique identifier pair for said one or more records, and said log client implementation compares said log sequence number/unique identifier pair for each of said one or more records against said first set of one or more records and said next set of one or more records to determine if there is a match, and when said match is not found, said log client implementation returns said log file amnesia message to said log client.

### Claim 26 (depends on 25)

The system according to claim 25 further comprising at least a one of:
an algorithm for generating a 16-byte (128-bit) globally unique identifier for said first unique identifier and said next unique identifier;
a software module for generating a 32-bit timestamp; or
a software module for generating a 64-bit timestamp.

### Claim 27 (depends on 25)

The system according to claim 25 wherein said defined triggering event is at least a one of a creation of the log file, a reset of the log file, a restoration of the log file from a backup, a writing of a record to the log file, computer reboot, or any other event defined to be a triggering event.

### Claim 28 (depends on 25)

The system according to claim 25 further comprising:
an okay message, wherein when said match is found, said log client implementation returns said okay message to said log client.

### Claim 29

A tangible computer readable storage medium storing instructions that, when executed by a processor, cause the processor to perform a method for detecting log file amnesia, the method comprising the steps of:
(a) creating a log file and a first unique identifier for a first time interval for said log file, wherein said first unique identifier is stored in the memory;
(b) writing a first set of one or more records to said log file, wherein each of said one or more records is assigned a sequential log sequence number and a first of said one or more records is annotated with said first unique identifier forming a first begin interval record;
(c) detecting a defined triggering event indicating a beginning of a next time interval for said log file;
(d) creating a next unique identifier for said next time interval for the log file, wherein said next unique identifier is stored in the memory in place of said first unique identifier;
(e) writing a next set of one or more records to said log file, wherein each of said one or more records is assigned said sequential log sequence number and a first of said one or more records is annotated with said next unique identifier forming a next begin interval record;
(f) receiving a request for validation of a record, wherein said record received has a log sequence number;
(g) scanning said log file backward, beginning from said log sequence number for the record, until said first begin interval record or said next begin interval record is found;
(h) reading said first or next unique identifier from said first begin interval record or said next begin interval record found, forming a log sequence number/unique identifier pair for said record;
(i) comparing said log sequence number/unique identifier pair determined for said record against said first set of one or more records and said next set of one or more records to determine if there is a match; and
(j) when said match is not found, returning a log file amnesia message to the log client.

### Claim 30 (depends on 29)

The computer readable storage medium according to claim 29 wherein said creating step (a) and said creating step (d) each further comprise at least one of the steps of:
using an algorithm to generate a 16-byte (128-bit) globally unique identifier for said first unique identifier and said next unique identifier;
generating a 64-bit timestamp; or
generating a 32-bit timestamp.

### Claim 31 (depends on 29)

The computer readable storage medium according to claim 29 wherein said detecting step (c) further comprises the step of:
detecting at least a one of a creation of the log file, a reset of the log file, a restoration of the log file from a backup, a writing of a record to the log file, computer reboot, or any other event defined to be a triggering event.

### Claim 32 (depends on 29)

The computer readable storage medium according to claim 29 further comprising the step of:
when said match is found, returning an okay message to the log client.
