Fast Unsupervised Anomaly Detection Methods on Software Logs - An Empirical Study
Jesse Nyyss\"ol\"a, Mika M\"antyl\"a, Yuqing Wang
Key points
From the paper's conclusion- We study effects of data preprocessing, anomaly detection method, and the dataset.
Abstract
Anomaly detection on software logs ensures system reliability through failure identification, root cause analysis and fault localization. While supervised models show excellent performance, in a practical setting there rarely are labeled training data available. This calls for the use of unsupervised models. We study effects of data preprocessing, anomaly detection method, and the dataset. For preprocessing, we examine three options: The use of anomaly-free training data, using randomized as opposed to chronologically selected training data, and the use of a custom loader to extract log message from the log line. Regarding anomaly detection we use four models (KMeans, IsolationForest, RarityModel, Out-Of-Vocabulary Detector) and three representations (Words, trigrams, and parsed events). We evaluate these approaches on seven datasets: BGL, HDFS, Hadoop, Spirit, Thunderbird, Liberty, and LO2Token. We run each combination of the selected factors and measure performance with AUCROC and F1-score metrics. Then we utilize a generalized linear model to establish relationships between the factors. Furthermore, we address execution times. Our evidence reveals large variability across all datasets, preventing us from making recommendations that apply universally. For instance, log parsing enhances performance on some datasets but reduces it on others. The evidence suggests that using anomaly-free data for training unsupervised models can improve anomaly detection performance, though this requires extra effort to identify such data.Previous work has argued that shuffling data leads to unrealistic model performance (data leakage). Yet, our results show this does not hold for the unsupervised models we tested, while it remains true for supervised models in the same setup. For fast execution of the pipeline, use word representation and avoid IsolationForest model.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Validation-Selected Drain3–DeepLog and SPELL–DeepLog Pipelines for HDFS Anomaly Detection: Performance and Exploratory Event-Granularity AnalysisApplied Sciences · 2026
- Too many clients spoil the logs: distributed parsing, aggregation techniques and metricsarXiv · 2026
- LogNexus: Effective Log Compression via Unified Redundancy EncodingProceedings of the ACM on Software Engineering · 2026
- Cost-Aware LLM-Style Routing for AIOps Log Analysis: Log Parsing, Anomaly Detection, Fault Diagnosis, and Incident Summarization on LogEval Task FilesJournal of Technology Informatics and Engineering · 2026
- LogCDM: Interpretable Log Anomaly Detection via Behavioral Graph Drift and Adaptive Signal FusionarXiv · 2026
- Component-Level Contributions of Retrieval-Augmented LLM Post-Processing in Streaming Anomaly Detection: A Matched-Operating-Point Case Audit.Sensors (Basel, Switzerland) · 2026