arXiv · 2504.02172
LogLSHD: Fast Log Parsing with Locality-Sensitive Hashing and Dynamic Time Warping
Abstract
Large-scale software systems generate vast volumes of system logs that are essential for monitoring, diagnosing, and performance optimization. However, the unstructured nature and ever-growing scale of these logs present significant challenges for manual analysis and automated downstream tasks such as anomaly detection. Log parsing addresses these challenges by converting raw logs into structured formats, enabling efficient log analysis. Despite its importance, existing log parsing methods suffer from limitations in efficiency and scalability, due to the large size of log data and their heterogeneous formats. To overcome these challenges, this study proposes a log parsing approach, LogLSHD, which leverages Locality-Sensitive Hashing (LSH) to group similar logs and integrates Dynamic Time Warping (DTW) to enhance the accuracy of template extraction. LogLSHD demonstrates exceptional efficiency in parsing time, significantly outperforming state-of-the-art methods. For example, compared to Drain, LogLSHD reduces the average parsing time by 73% while increasing the average parsing accuracy by 15% on the LogHub 2.0 benchmark.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Shu-Wei Huang, Xingfang Wu, Heng Li. 2025-04-02. LogLSHD: Fast Log Parsing with Locality-Sensitive Hashing and Dynamic Time Warping. https://arxiv.org/abs/2504.02172
Cite the original work for its findings. Save a collection to share your selection of sources.