English

LogLSHD: Fast Log Parsing with Locality-Sensitive Hashing and Dynamic Time Warping

Software Engineering 2025-04-04 v1

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.

Keywords

Cite

@article{arxiv.2504.02172,
  title  = {LogLSHD: Fast Log Parsing with Locality-Sensitive Hashing and Dynamic Time Warping},
  author = {Shu-Wei Huang and Xingfang Wu and Heng Li},
  journal= {arXiv preprint arXiv:2504.02172},
  year   = {2025}
}

Comments

Accepted for the 21st International Conference on Predictive Models and Data Analytics in Software Engineering (PROMISE 2025)