SLGParser: Practical and Efficient Label-Free Log Parsing Using Large Language Models
Yibing Hu, Cong Wang, Lixin Zhao, Aimin Yu
Abstract
Logs serve as crucial artifacts for recording runtime system states and play a vital role in system diagnostics, security analysis, and performance optimization. Log parsing, the process of converting semi-structured logs into structured formats, is a pivotal preliminary step for enabling automated log analysis and utilization. Recently, semantic-based parsers leverage labeled data, which is labor-intensive. Unsupervised LLM-based log parsers perform comparative analysis on a set of logs that share similar static text, and we refer to this set of logs as a log group. Through a comprehensive analysis of unsupervised methods, we identify three limitations. 1) Validity: existing parsers fail to adequately capture the variable parts of log entries in selecting log groups. 2) Generalizability: the absence of log groups often leads to suboptimal performance when relying solely on groupbased reasoning strategy. 3) Practicality: handling large volumes of log entries incurs substantial computational overhead and poses a great challenge in parsing efficiency. To overcome above limitations, we introduce SLGParser, a universal and efficient unsupervised log parsing approach. Specifically, we propose a Suitable Log Group (SLG) selector that maximizes variable differences among logs to enhance the validity of SLGParser. Furthermore, we develop a hint-enhanced strategy to address the performance degradation caused by the absence of log groups. Additionally, we employ an efficient Log Matcher mechanism to reduce LLM query and time overhead. SLGParser reveals several significant inaccuracies in the manually labeled ground truth of the Loghub-2.0 benchmark. To validate the effectiveness of SLGParser, we perform extensive experiments on the revised datasets. The experimental results demonstrate that SLGParser significantly outperforms state-of-the-art log parsers in terms of accuracy and efficiency, providing an efficient and practical solution for real-world deployment.
Ask about this paper
Ask your agent about it.
Lune has read the top-tier papers around this one, so every answer names the papers it rests on.
Your agent calls
Lunesearch_papers
Free to start. No credit card required.
Terminal
Install the CLIlune papers get 499b88d9-0ec6-4042-ba08-5609afcef0f2Related papers
- No More Labelled Examples? An Unsupervised Log Parser with LLMsJunjie Huang, Zhihan Jiang, Zhuangbin Chen, Michael R. LyuFSE 2025 · 13 citations
- LogParser-LLM: Advancing Efficient Log Parsing with Large Language ModelsAoxiao Zhong, Dengyao Mo, Guiyang Liu, Jinbu Liu et al.KDD 2024 · 41 citations
- LibreLog: Accurate and Efficient Unsupervised Log Parsing Using Open-Source Large Language ModelsZeyang Ma, Dong Jae Kim, Tse-Hsun Peter ChenICSE 2025 · 7 citations
- Small Is Beautiful: A Practical and Efficient Log Parsing FrameworkMinxing Wang, Yintong HuoFSE 2026 · 1 citation
- VarParser: Unleashing the Neglected Power of Variables for LLM-based Log ParsingJinrui Sun, Tong Jia, Minghua He, Ying LiWWW 2026
