# US 2024/0202227 A1 · Fast Clustering Of Log Messages

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

- Number: US 2024/0202227 A1
- Document ID: US20240202227A1
- Status: Published application
- Kind: A1
- Application number: 18/517,930
- Filed: 2023-11-22
- Published: 2024-06-20
- Earliest claimed: 2022-12-16
- Assignees: Dynatrace LLC
- Applicants: Dynatrace LLC
- Inventors: Esteban Pérez WOHLFEIL
- Web page: https://patentgrep.com/patent/US20240202227A1

## CPC

- G06F 11/3476: {Data logging (G06F11/14, G06F11/2205 take precedence)}
- G06F 16/353: into predefined classes
- G06F 16/355: Creation or modification of classes or clusters
- G06F 17/40: Data acquisition and logging (for input to computer G06F3/00)
- G06F 2201/83: the solution involving signatures
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computer-implemented technique is presented for analyzing log messages. The method includes: receiving a plurality of log message from a list of log messages; for each log message in the log messages, generating a fingerprint for the log message and appending the fingerprint to the log message, where the fingerprint is comprised of punctuation characters in the log message; sorting the log messages in the list of log messages according to the punctuation characters comprising a fingerprint for a given log message; and clustering log messages in the sorted list of log messages into a final set of clusters, where each cluster in the final set of clusters includes one or more log messages and the log messages in each cluster have fingerprints similar to other log messages in the cluster.

## Claims

### Claim 1

A computer-implemented method for analyzing log messages, comprising:
receiving, by a computer processor, a plurality of log message from a list of log messages;
for each log message in the log messages, generating, by the computer processor, a fingerprint for the log message and appending the fingerprint to the log message, where the fingerprint is comprised of punctuation characters in the log message;
sorting, by the computer processor, the log messages in the list of log messages according to the punctuation characters comprising a fingerprint for a given log message; and
clustering, by the computer processor, log messages in the sorted list of log messages into a final set of clusters, where each cluster in the final set of clusters includes one or more log messages and the log messages in each cluster have fingerprints similar to other log messages in the cluster.

### Claim 2 (depends on 1)

The method of claim 1 wherein generating a fingerprint further comprises extracting keywords from the log message and adding the keywords to the fingerprint.

### Claim 3 (depends on 1)

The method of claim 1 wherein the log messages are sorted according to ACSII values of the punctuation characters comprising the fingerprint.

### Claim 4 (depends on 1)

The method of claim 1 wherein clustering the sort list of log messages further comprises
clustering log messages in the sorted list of log messages into a first set of clusters, where log messages in each cluster of the first set of clusters has identical fingerprints;
further clustering log messages in the first set of clusters to form the final set of clusters.

### Claim 5 (depends on 4)

The method of claim 4 wherein further clustering log messages in the first set of clusters includes computing a similarity metric between a fingerprint from a given cluster of the first set of clusters and a fingerprint from each of one or more subsequent clusters in the first set of clusters, and combining log messages from a particular cluster in the one or more subsequent clusters into the given cluster when the similarity metric for the particular cluster is less than a similarity threshold.

### Claim 6 (depends on 5)

The method further includes repeating the steps of claim 5 for each uncombined cluster in the first set of clusters to form a second set of clusters.

### Claim 7 (depends on 6)

The method of claim 6 further comprises continuing clustering log messages in the second set of clusters until a stop condition is met, thereby creating the final set of clusters.

### Claim 8 (depends on 5)

The method of claim 5 wherein the similarity metric is further defined as an edit distance.

### Claim 9 (depends on 5)

The method of claim 5 wherein the similarity metric is further defined as Levenshtein distance.

### Claim 10 (depends on 5)

The method of claim 5 wherein the similarity metric is further defined as a normalized edit distance, where the normalized edit distance is computed as an edit distance between a first and second fingerprint divided by a length of a fingerprint, where the length corresponds to longer of the first fingerprint or the second fingerprint.

### Claim 11 (depends on 5)

The method of claim 5 further comprises, prior to the step of further clustering log messages, analyzing log messages in the first set of clusters and removing identical portions log message from each of the log messages in the first set of clusters.

### Claim 12 (depends on 11)

The method of claim 11 wherein the similarity metric is further defined as a normalized edit distance, where the normalized edit distance is computed as an edit distance between a first fingerprint and a second fingerprint divided by a length of a fingerprint, where computation of edit distance using the first fingerprint and the second fingerprint after the removal of the identical portions and the length corresponds to longer of the first fingerprint or the second fingerprint before removal of the identical portions.

### Claim 13

A computer-implemented method for analyzing log messages, comprising:
receiving, by a computer processor, a plurality of log message from a list of log messages;
a) for each log message in the log messages, generating, by the computer processor, a fingerprint for the log message and appending the fingerprint to the log message, where the fingerprint is comprised of punctuation characters in the log message;
b) sorting, by the computer processor, the log messages in the list of log messages according to the punctuation characters comprising a fingerprint for a given log message;
c) clustering, by the computer processor, log messages in the sorted list of log messages into a first set of clusters, where each cluster in the first set of clusters includes one or more log messages and the log messages in each cluster have identical fingerprints;
d) computing a similarity metric between a fingerprint from a given cluster of the first set of clusters and a fingerprint from each of one or more subsequent clusters in the first set of clusters;
e) combining log messages from a particular cluster in the one or more subsequent clusters into the given cluster when the similarity metric for the particular cluster is less than a similarity threshold similar to other log messages in the cluster;
for each uncombined cluster in the first set of clusters, repeating steps d) and e), thereby forming a second set of clusters.

### Claim 14 (depends on 13)

The method of claim 13 wherein the log messages are sorted according to ACSII values of the punctuation characters comprising the fingerprint.

### Claim 15 (depends on 13)

The method of claim 13 wherein the similarity metric is further defined as an edit distance.

### Claim 16

A non-transitory computer-readable medium having computer-executable instructions that, upon execution of the instructions by a processor of a computer, cause the computer to perform:
receive a plurality of log message from a list of log messages;
for each log message in the log messages, generate a fingerprint for the log message and appending the fingerprint to the log message, where the fingerprint is comprised of punctuation characters in the log message;
sort the log messages in the list of log messages according to the punctuation characters comprising a fingerprint for a given log message; and
cluster log messages in the sorted list of log messages into a final set of clusters, where each cluster in the final set of clusters includes one or more log messages and the log messages in each cluster have fingerprints similar to other log messages in the cluster.

### Claim 17 (depends on 16)

The non-transitory computer-readable medium of claim 16 further performs to extract keywords from the log message and add the keywords to the fingerprint.

### Claim 18 (depends on 16)

The non-transitory computer-readable medium of claim 16 wherein the log messages are sorted according to ACSII values of the punctuation characters comprising the fingerprint.

### Claim 19 (depends on 16)

The non-transitory computer-readable medium of claim 16 further performs to
cluster log messages in the sorted list of log messages into a first set of clusters, where log messages in each cluster of the first set of clusters has identical fingerprints; and
further cluster log messages in the first set of clusters to form the final set of clusters.

### Claim 20 (depends on 16)

The non-transitory computer-readable medium of claim 16 wherein further clustering log messages in the first set of clusters includes computing a similarity metric between a fingerprint from a given cluster of the first set of clusters and a fingerprint from each of one or more subsequent clusters in the first set of clusters, and combining log messages from a particular cluster in the one or more subsequent clusters into the given cluster when the similarity metric for the particular cluster is less than a similarity threshold.

### Claim 21 (depends on 20)

The non-transitory computer-readable medium further performs to repeat the steps of claim 20 for each uncombined cluster in the first set of clusters to form a second set of clusters.

### Claim 22 (depends on 21)

The non-transitory computer-readable medium of claim 21 wherein the similarity metric is further defined as an edit distance.

### Claim 23 (depends on 21)

The non-transitory computer-readable medium of claim 21 wherein the similarity metric is further defined as Levenshtein distance.

### Claim 24 (depends on 21)

The non-transitory computer-readable medium of claim 21 wherein the similarity metric is further defined as a normalized edit distance, where the normalized edit distance is computed as an edit distance between a first and second fingerprint divided by a length of a fingerprint, where the length corresponds to longer of the first fingerprint or the second fingerprint.

### Claim 25 (depends on 1)

The method of claim 1 further comprises
receiving a new log message after the step of clustering;
generating a fingerprint for the new log message and appending the fingerprint to the new log message;
adding the new log message with the appended fingerprint to the final set of clusters;
sorting the log messages in the final set of clusters according to the punctuation characters comprising a fingerprint for a given log message; and
re-clustering log messages in the sorted final set of clusters, where each cluster in the re-clustered set of clusters includes one or more log messages and the log messages in each cluster have fingerprints similar to other log messages in the cluster.

### Claim 26 (depends on 25)

The method of claim 25 wherein the step of adding the new log message to the final set of clusters and sorting the log messages in the final set of clusters is replaced with adding the new log message to a binary tree.
