NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

LogSig

Liang Tang, Tao Li, Chang-Shing Perng2011

TL;DR

This paper introduces LogSig, a novel algorithm for automatically generating system event types from raw, unstructured log messages. LogSig addresses the challenge of diverse log formats and large vocabularies by identifying "message signatures" – common subsequences that represent event types – and outperforms existing methods in accuracy.

What Problem Does This Paper Address?

Modern computing systems generate vast amounts of log data, which are crucial for system administrators to understand and optimize system behavior. However, these logs are typically raw text, making automated analysis difficult. A primary challenge is transforming these unstructured log messages into meaningful "system events." Traditional text clustering methods struggle with the short, yet highly varied, vocabulary of log messages. Existing specialized parsers are often system-specific and time-consuming to develop. This paper tackles the problem of reliably and efficiently generating system event types from diverse textual log data without requiring extensive prior knowledge of system internals.

Methods

The core of LogSig is its message signature-based approach. Instead of relying on traditional bag-of-words models or strict format matching, LogSig identifies recurring, representative subsequences of terms within log messages. These subsequences, termed "message signatures," act as identifiers for specific event types.

The algorithm proceeds in three main steps:

  1. Term Pair Generation: Each log message is broken down into ordered pairs of consecutive terms. This preserves some sequential information while simplifying subsequent processing.
  2. Log Message Partitioning: A local search strategy is employed to partition the log messages into k groups, where k is the desired number of event types. This partitioning is guided by a novel potential function (Φ) that aims to maximize the "purity" of term pairs within each group. This function is designed to be more robust than directly optimizing the number of common term pairs, which can lead to premature convergence in local optima.
  3. Message Signature Construction: Once messages are grouped, a representative message signature is constructed for each group. This signature is derived from the most frequent terms and term pairs within the group, ensuring it captures the essence of the event type.

LogSig also incorporates mechanisms to integrate domain knowledge, such as sensitive and trivial phrases, to further refine the accuracy of event generation.

Datasets

The authors evaluated LogSig on five real-world system log datasets:

  • FileZilla (SFTP/FTP Client)
  • PVFS2 (Parallel File System)
  • ThunderBird (Supercomputer)
  • Apache (Web Server Error Logs)
  • Hadoop (Parallel Computing Platform)

These datasets vary in size and complexity, providing a good testbed for the algorithm's generalizability. The paper does not introduce new benchmark datasets but uses existing logs from various systems.

Key Insights and Ideas

  • Message Signatures as Event Descriptors: The central idea that common subsequences (signatures) can effectively represent event types is a key insight. This moves beyond simple word counts or exact format matching.
  • The Challenge of Log Vocabulary: The paper highlights how the combination of short messages and a vast vocabulary makes traditional text clustering ineffective for log analysis.
  • Potential Function for Robust Clustering: The introduction of a potential function (Φ) to guide the local search is a significant methodological contribution. It offers a more stable and effective way to optimize the clustering process compared to directly maximizing common term pairs.
  • Domain Knowledge Integration: The ability to incorporate domain expertise (sensitive/trivial phrases) as constraints on message signatures is crucial for practical applications, allowing for more accurate and interpretable event generation.
  • Handling Variable Parameter Lengths: LogSig's approach implicitly handles log messages where parameters can vary in length (e.g., hostnames, file paths) by focusing on the fixed parts of the message as signatures.

Key Results

  • Superior Accuracy: LogSig consistently outperformed several baseline algorithms (Jaccard, VectorModel, IPLOM, StringMatch, StringKernel) in terms of average F-measure across the five datasets. For instance, on FileZilla logs, LogSig achieved an F-measure of 0.6949, significantly higher than most others.
  • High Performance on Diverse Logs: The algorithm demonstrated strong performance across different types of log data, indicating its generalizability.
  • Semi-Supervised Improvement: The semi-supervised version of LogSig (semi-logSig) achieved near-perfect F-measures (e.g., 1.0000 on FileZilla), showcasing the power of incorporating domain knowledge.
  • Scalability: LogSig's running time was observed to be approximately linear with the log data size, making it suitable for large-scale log analysis.

Limitations and Future Work

  • NP-Hardness: The core problem of finding optimal message signatures is NP-hard, meaning LogSig uses approximation algorithms and local search, which may converge to local optima.
  • Parameter Tuning: The performance of LogSig can be influenced by parameters like k (number of event types) and λ' (for domain knowledge integration). While experiments suggest stable performance for λ' > 4, optimal k selection might still require expert input or heuristic methods.
  • Future Work: The authors suggest integrating structural learning techniques to capture more complex structural information within log messages, potentially further improving performance. They also aim to explore more sophisticated ways to incorporate domain knowledge.

Summary updated

BibTeX
@misc{tang2011logsig,
  author = {Liang Tang and Tao Li and Chang-Shing Perng},
  title = {{LogSig}},
  year = {2011},
  doi = {10.1145/2063576.2063690},
}
Figure