Fast clustering of log messages
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.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 7 · Forward citations: 0.
Claims (8 — 1 Independent, 7 Dependent)
- Claim 1Independent Claim
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; wherein clustering the sorted list of log messages further comprises clustering log messages in the sorted list of lo
- Claim 2Depends 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 3Depends 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 4Depends on #1
The method further includes repeating the steps of claim 1 for each uncombined cluster in the first set of clusters to form a second set of clusters.
- Claim 5Depends on #4
The method of claim 4 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 6Depends on #1
The method of claim 1 wherein the similarity metric is further defined as an edit distance.
- Claim 7Depends on #1
The method of claim 1 wherein the similarity metric is further defined as Levenshtein distance.
- Claim 8Depends on #1
The method of claim 1 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.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS This application claims the benefit of U.S. Provisional Application No. 63/433,160, filed on Dec. 16, 2022. The entire disclosure of the above application is incorporated herein by reference. FIELD The disclosure concerns the technical field of information technology and more specifically the field of application performance monitoring and observability of computers, preferably of a system of computers in connection with a cloud infrastructure. In particular, the disclosure concerns a computer implemented method for fast, autonomous clustering of large scale and highly unstructured log messages. BACKGROUND Operating systems for clients and servers, applications (both locally installed, web based and hybrid), networks including the cloud, and containers (such as Docker or Kubernetes) generate during operation so-called log messages. A log message is a string, which is typically contained individually (say as one line) in a file or list of log messages. Each log message usually contains a time stamp and a message portion; additionally, other information, such as the severity level, the source, payload . . . can be included. The message portion can relate to an application or system related event, a security event, or a setup event, etc. Log messages contain important information for the observability and the application performance monitoring of applications and/or computers. Since many heterogenous log messages exist, the clustering of log messages into clusters of “ similar ” log messages is difficult. Furthermore, as computers typically operate in large clusters and for example, potentially any computer can be targeted in order to get access/compromise a network and/or data, large volumes of log messages are generated as a result. Finally, as e.g. an attack is sometimes not detected in real time but later, log files need to be stored for a certain period of time, which increases the volume of the log messages further. Multipl
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (7)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- Bar-Yossef, Ziv, et al.
- “
- Approximating edit distance efficiently.
- ”
- 45th Annual IEEE Symposium on Foundations of Computer Science. IEEE, 2004.
- Charikar, Moses, and Robert Krauthgamer. Embedding the Ulam metric into ? 1. Theory of Computing 2.1 (2006): 207-224.
- Andoni, Alexandr, Robert Krauthgamer, and Krzysztof Onak.
- “
- Polylogarithmic approximation for edit distance and the asymmetric query complexity.
- ”