[Paper Review] Length Matters: Clustering System Log Messages using Length of Words
This paper proposes LenMa, a one-pass, online system log message clustering method that uses word length sequences to infer templates without requiring frequency analysis or two-pass processing. By treating each message as a sequence of word lengths, the method achieves comparable template clustering accuracy to existing methods like SHISO while enabling real-time adaptation to dynamic log patterns in cloud and distributed systems.
The analysis techniques of system log messages (syslog messages) have a long history from when the syslog mechanism was invented. Typically, the analysis consists of two parts, one is a message template generation, and the other is finding something interesting using the messages classified by the inferred templates. It is important to generate better templates to achieve better, precise, or convincible analysis results. In this paper, we propose a classification methodology using the length of words of each message. Our method is suitable for online template generation because it does not require two-pass analysis to generate template messages, that is an important factor considering increasing amount of log messages produced by a large number of system components such as cloud infrastructure.
Motivation & Objective
- To address the challenge of real-time, scalable system log message clustering in dynamic environments like cloud infrastructure.
- To reduce the complexity of template generation by avoiding two-pass analysis and frequency-based word selection.
- To explore whether word length sequences alone can serve as a reliable basis for clustering log messages.
- To enable online, adaptive template mining that quickly responds to changes in log message patterns due to software updates or new components.
Proposed method
- The method represents each log message as a sequence of word lengths, treating each word's character count as a feature.
- It applies a similarity threshold (Tc = 0.9) and a minimum word count threshold (Tp = 3) to group messages into clusters based on matching length sequences.
- Clustering is performed in a single pass, making it suitable for real-time processing of high-volume log streams.
- The approach does not analyze word content, character types, or frequency—focusing solely on the length of each word in the message.
- It uses a simple vector-based comparison: messages with identical or highly similar word length sequences are grouped together.
- The method is designed to be lightweight and scalable, avoiding complex preprocessing or training phases.
Experimental results
Research questions
- RQ1Can word length sequences alone serve as a reliable and sufficient basis for clustering system log messages?
- RQ2How does a one-pass, length-based clustering method compare to multi-pass, frequency- or character-type-based methods in template accuracy and scalability?
- RQ3Can this method effectively handle dynamic log patterns in cloud and distributed systems without requiring prior knowledge or training?
- RQ4What threshold values for similarity and minimum word count yield optimal clustering results in real-world log datasets?
Key findings
- LenMa achieved a comparable number of templates (26) to SHISO (26) on the log/secure dataset, demonstrating competitive performance with simpler processing.
- The method successfully clustered 132,480 one-minute log groups into 25 distinct message pattern clusters, indicating strong pattern recognition capability.
- Frequently occurring patterns such as SSH connection attempts and node reboots were successfully identified and isolated from the log stream.
- The approach detected unique behaviors like unusual SSH activity and system reboots, showing utility in anomaly detection.
- Despite not using word frequency or character type analysis, LenMa produced meaningful clusters that matched known system behaviors.
- The method proved effective for online processing, enabling real-time template inference without the overhead of two-pass analysis.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.