Efficient Log Parsing Method Based on Log Locality Features
Open Access
- 1 June 2026
- journal article
- Published by Tsinghua University Press in Tsinghua Science and Technology
- Vol. 31 (3) , 1934-1948
Abstract
Log parsing is indispensable for system maintenance, converting unstructured log data into structured formats (log templates) for further log compression and anomaly detection. The effectiveness of log parsing relies on the efficiency of two key processes: template extraction and log matching. Traditional methods, however, suffer from slow pairwise comparisons for template extraction and the tedious, non-scalable sequential approach for template matching. Our research has uncovered two opportunities for optimization based on two log locality characteristics: logs from the same template tend to cluster sequentially, and there is a limited variety of templates used within given timeframes. To exploit these opportunities, we propose the Multi-Logs Template Extraction (MLTE)-Cache framework. MLTE-Cache leverages the MLTE algorithm to enhance the efficiency of template extraction by grouping similar logs and processing them in batch mode. Furthermore, the framework utilizes a cache-assisted proximity matching algorithm to accelerate the log matching procedure. Through comprehensive experiments on open-source datasets, the MLTE-Cache framework has proven highly effective, maintaining a high level of accuracy while delivering a 37% improvement in efficiency.Keywords
This publication has 27 references indexed in Scilit:
- Fusion Graph Structure Learning-Based Multivariate Time Series Anomaly Detection With Structured Prior KnowledgeIEEE Transactions on Information Forensics and Security, 2024
- LPV: A Log Parser Based on Vectorization for Offline and Online Log Parsing2020
- Tools and Benchmarks for Automated Log Parsing2019
- Spell: Online Streaming Parsing of Large Unstructured System LogsIEEE Transactions on Knowledge and Data Engineering, 2018
- Fast Tensor Factorization for Accurate Internet Anomaly DetectionIEEE/ACM Transactions on Networking, 2017
- An Evaluation Study on Log Parsing and Its Use in Log Mining2016
- UiLog: Improving Log-Based Fault Diagnosis by Log AnalysisJournal of Computer Science and Technology, 2016
- Incremental Mining of System Log Format2013
- Abstracting log lines to log event types for mining software system logs2010
- A data clustering algorithm for mining patterns from event logs2004