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

Effective Removal of Operational Log Messages: an Application to Model Inference

Donghwan Shin, Domenico Bianculli, Lionel C. BriandarXiv 2020

TL;DR

This paper introduces LogCleaner, a novel technique to automatically remove "noisy" operational messages from system execution logs. By cleaning these logs, LogCleaner significantly improves the accuracy and reduces the execution time of software model inference, making it a valuable pre-processing step for understanding system behavior.

What Problem Does This Paper Address?

Software model inference aims to automatically build models (like Finite State Machines) that represent the functional behavior of a system based on its execution logs. However, real-world logs often contain "noise" – messages that don't reflect the core functionality but rather the system's operational state (e.g., periodic heartbeats). When these operational messages are interleaved with functional (transactional) messages, they can lead to inaccurate models that incorrectly capture non-functional behaviors. Manually cleaning these logs is tedious and error-prone, especially for complex systems with many third-party components. This paper addresses the need for an automated, effective method to remove this operational noise before model inference.

Methods

LogCleaner employs a two-step approach:

  1. Periodicity Analysis: This step identifies and removes messages that occur at a regular, global interval throughout the entire log. This is particularly effective for "heartbeat" type messages.
  2. Dependency Analysis: For messages that aren't globally periodic, this step analyzes the co-occurrence patterns between log messages. It calculates a "dependency score" for each message template, reflecting how likely one message is to follow or precede another. The intuition is that transactional messages, reflecting functional flow, will have higher dependency scores than operational messages, which can appear more randomly. A clustering-based heuristic (specifically, Mean-Shift clustering) is then used to automatically partition templates into operational and transactional sets based on these dependency scores.

Datasets

The authors evaluated LogCleaner on:

  • Two proprietary log datasets from an industrial partner in the satellite domain. These logs were known to be "noisy" but were not documented, making manual classification of messages impossible.
  • Eleven publicly available log datasets generated from pre-defined Finite State Machine (FSM) models. These logs are purely transactional by design. To evaluate LogCleaner's performance under noise, operational messages were artificially injected into these logs at varying "Noise Rates" (NR).

Key Insights and Ideas

  • Operational messages are a significant source of error in model inference: The paper clearly demonstrates that simply including operational messages leads to models that misrepresent system functionality.
  • Periodicity and dependency are key discriminators: The core insight is that operational messages exhibit distinct patterns of periodicity and lower inter-message dependency compared to transactional messages.
  • Automated cleaning is feasible and effective: LogCleaner's success shows that manual log cleaning can be replaced by an automated process, saving significant effort.
  • Log quality matters: The effectiveness of LogCleaner, particularly in preserving transactional messages, is shown to be dependent on the inherent quality of the logging statements in the original system. High-quality logs (where logging accurately reflects functional behavior) lead to near-perfect cleaning.
  • Cleaning benefits model inference beyond just accuracy: Not only does LogCleaner improve model accuracy, but it also significantly speeds up the model inference process.

Key Results

  • High Removal Accuracy: LogCleaner, on average, removes 98% of operational messages while preserving 81% of transactional messages.
  • Improved Model Inference Speed: Pre-processing logs with LogCleaner leads to significant speed-ups in model inference, ranging from 1.5x to 946.7x, depending on system characteristics. Even when accounting for the size reduction of the logs, speed-ups are substantial (1.3x to 882.1x).
  • Enhanced Model Accuracy:
    • Recall (accepting correct behaviors): Increased by an average of 43.8 percentage points (pp).
  • Specificity (rejecting incorrect behaviors): Increased by an average of 15.0 pp.
  • Impact of Log Quality: For systems with high-quality logs, LogCleaner achieved near-perfect recall and specificity. For systems with lower-quality logs, it was still effective but sometimes incorrectly removed transactional messages, though this could still lead to better overall model accuracy in some cases.

Limitations and Future Work

  • Log Parsing Dependency: The accuracy of LogCleaner can be influenced by the log parsing technique used to extract message templates. The authors used a state-of-the-art technique and manual refinement for proprietary logs but acknowledge this as a potential threat.
  • Model Inference Tool Specificity: The evaluation was performed using a specific model inference tool (MINT). While the authors believe the trends would hold for other tools, a direct comparison is left for future work.
  • Future Work: The authors plan to investigate the impact of LogCleaner on different model inference tools and further explore the relationship between log quality and LogCleaner's performance. They also highlight the practical importance of ensuring logging statement granularity aligns with functional behavior.

Summary updated

BibTeX
@misc{shin2020effective,
  author = {Donghwan Shin and Domenico Bianculli and Lionel C. Briand},
  title = {{Effective Removal of Operational Log Messages: an Application to Model Inference}},
  year = {2020},
  eprint = {2004.07194},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.07194},
}

Loading related content...

Figure