Systems and methods for categorizing exceptions and logs
AssigneeMicrosoft Technology Licensing, LLC
InventorsNicholas Baggott, Badrinath K. Sridharan, Toon Sripatanaskul
Life of this patent
Estimating the term…
Abstract
Techniques for categorizing exceptions and logs are described. For example, exception data of an exception that occurred on a machine is accessed. The exception data includes a stack trace of the exception. A determination is made that the exception is unique based on the stack track of the exception. Responsive to the determination that the exception is unique, the exception is categorized, by a machine including a memory and at least one processor, into one or more categories based on the stack trace of the exception.
Claims18
A computer-implemented method comprising:
- accessing exception data of an exception that occurred on a machine, the exception data including a stack trace of the exception;
- determining that the exception is unique based on the stack trace of the exception, the determining that the exception is unique including:
- removing dynamic data from the stack trace of the exception to result in a stripped stack trace of the exception,
- applying a hash function to the stripped stack trace to calculate a particular primary hash code that uniquely identifies the stripped stack trace of the exception,
- accessing one or more primary hash codes stored in a record of a database,
- comparing the particular primary hash code against the one or more primary hash codes, and
- determining that the particular primary hash code is not included in the one or more primary hash codes;
- responsive to the determining that the exception is unique, performing a first categorizing, using one or more hardware processors, of the exception into one or more categories based on the stack trace of the exception;
- removing additional data from the stripped stack trace of the exception to result in a twice-stripped stack trace of the exception;
- applying the hash function to the twice-stripped stack trace to calculate a particular secondary hash code associated with the exception;
- and
- performing a second categorizing of the exception into the one or more categories based on the particular secondary hash code associated with the exception.
A system comprising:
- a non-transitory machine-readable medium for storing instructions that, when executed by one or more hardware processors, cause the one or more hardware processors to perform operations comprising:
- accessing exception data of an exception that occurred on a machine, the exception data including a stack trace of the exception;
- determining that the exception is unique based on the stack trace of the exception, the determining that the exception is unique including:
- removing dynamic data from the stack trace of the exception to result in a stripped stack trace of the exception,
- applying a hash function to the stripped stack trace to calculate a particular primary hash code that uniquely identifies the stripped stack trace of the exception,
- accessing one or more primary hash codes stored in a record of a database,
- comparing the particular primary hash code against the one or more primary hash codes, and
- determining that the particular primary hash code is not included in the one or more primary hash codes;
- responsive to the determining that the exception is unique, performing a first categorizing of the exception into one or more categories based on the stack trace of the exception
- removing additional data from the stripped stack trace of the exception to result in a twice-stripped stack trace of the exception;
- applying the hash function to the twice-stripped stack trace to calculate a particular secondary hash code associated with the exception;
- and
- performing a second categorizing of the exception into the one or more categories based on the particular secondary hash code associated with the exception.
A non-transitory machine-readable storage medium comprising instructions that, when executed by one or more hardware processors of a machine, cause the one or more hardware processors to perform operations comprising:
- accessing exception data of an exception that occurred on a machine, the exception data including a stack trace of the exception;
- determining that the exception is unique based on the stack trace of the exception, the determining that the exception is unique including:
- removing dynamic data from the stack trace of the exception to result in a stripped stack trace of the exception,
- applying a hash function to the stripped stack trace to calculate a particular primary hash code that uniquely identifies the stripped stack trace of the exception,
- accessing one or more primary hash codes stored in a record of a database,
- comparing the particular primary hash code against the one or more primary hash codes, and
- determining that the particular primary hash code is not included in the one or more primary hash codes;
- responsive to the determining that the exception is unique, performing a first categorizing of the exception into one or more categories based on the stack trace of the exception
- removing additional data from the stripped stack trace of the exception to result in a twice-stripped stack trace of the exception;
- applying the hash function to the twice-stripped stack trace to calculate a particular secondary hash code associated with the exception;
- and
- performing a second categorizing of the exception into the one or more categories based on the particular secondary hash code associated with the exception.
Dependencies are inferred from the claim text.