Hue: A User-Adaptive Parser for Hybrid Logs
Junjielong Xu, Qiuai Fu, Zhouruixing Zhu, Yutong Cheng, Zhijing Li, Yuchi Ma, Pinjia He
Abstract
Log parsing, which extracts log templates from semi-structured logs and produces structured logs, is the first and the most critical step in automated log analysis. While existing log parsers have achieved decent results, they suffer from two major limitations by design. First, they do not natively support hybrid logs that consist of both single-line logs and multi-line logs (e.g., Java Exception and Hadoop Counters). Second, they fall short in integrating domain knowledge in parsing, making it hard to identify ambiguous tokens in logs. This paper defines a new research problem, hybrid log parsing, as a superset of traditional log parsing tasks, and proposes Hue, the first attempt for hybrid log parsing via a user-adaptive manner. Specifically, Hue converts each log message to a sequence of special wildcards using a key casting table and determines the log types via line aggregating and pattern extracting. In addition, Hue can effectively utilize user feedback via a novel merge-reject strategy, making it possible to quickly adapt to complex and changing log templates. We evaluated Hue on three hybrid log datasets and sixteen widely-used single-line log datasets (i.e., Loghub). The results show that Hue achieves an average grouping accuracy of 0.845 on hybrid logs, which largely outperforms the best results (0.563 on average) obtained by existing parsers. Hue also exhibits SOTA performance on single-line log datasets. Furthermore, Hue has been successfully deployed in a real production environment for daily hybrid log parsing.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
4 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- VarParser: Unleashing the Neglected Power of Variables for LLM-based Log Parsing cites Guidelines for Assessing the Accuracy of Log Message Template Identification Techniques
- VarParser: Unleashing the Neglected Power of Variables for LLM-based Log Parsing cites DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
- VarParser: Unleashing the Neglected Power of Variables for LLM-based Log Parsing cites UniParser: A Unified Log Parser for Heterogeneous Log Data
- VarParser: Unleashing the Neglected Power of Variables for LLM-based Log Parsing cites LILAC: Log Parsing using LLMs with Adaptive Parsing Cache
- SPINE: a scalable log parser with feedback guidance cites Guidelines for Assessing the Accuracy of Log Message Template Identification Techniques
- SPINE: a scalable log parser with feedback guidance cites DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
- No More Labelled Examples? An Unsupervised Log Parser with LLMs cites SPINE: a scalable log parser with feedback guidance
- No More Labelled Examples? An Unsupervised Log Parser with LLMs cites Guidelines for Assessing the Accuracy of Log Message Template Identification Techniques
- No More Labelled Examples? An Unsupervised Log Parser with LLMs cites SemParser: A Semantic Parser for Log Analytics
- No More Labelled Examples? An Unsupervised Log Parser with LLMs cites UniParser: A Unified Log Parser for Heterogeneous Log Data
- No More Labelled Examples? An Unsupervised Log Parser with LLMs cites LILAC: Log Parsing using LLMs with Adaptive Parsing Cache
- Small Is Beautiful: A Practical and Efficient Log Parsing Framework cites No More Labelled Examples? An Unsupervised Log Parser with LLMs
- Small Is Beautiful: A Practical and Efficient Log Parsing Framework cites Guidelines for Assessing the Accuracy of Log Message Template Identification Techniques
- Small Is Beautiful: A Practical and Efficient Log Parsing Framework cites DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
- Small Is Beautiful: A Practical and Efficient Log Parsing Framework cites SemParser: A Semantic Parser for Log Analytics
- Small Is Beautiful: A Practical and Efficient Log Parsing Framework cites LILAC: Log Parsing using LLMs with Adaptive Parsing Cache
- SemParser: A Semantic Parser for Log Analytics cites DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
- UniParser: A Unified Log Parser for Heterogeneous Log Data cites DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
- LILAC: Log Parsing using LLMs with Adaptive Parsing Cache cites SPINE: a scalable log parser with feedback guidance
- LILAC: Log Parsing using LLMs with Adaptive Parsing Cache cites Guidelines for Assessing the Accuracy of Log Message Template Identification Techniques
- LILAC: Log Parsing using LLMs with Adaptive Parsing Cache cites SemParser: A Semantic Parser for Log Analytics
- LILAC: Log Parsing using LLMs with Adaptive Parsing Cache cites UniParser: A Unified Log Parser for Heterogeneous Log Data
Cited by top-tier papers4
- LILAC: Log Parsing using LLMs with Adaptive Parsing CacheZhihan Jiang, Jinyang Liu, Zhuangbin Chen, Yichen Li et al.FSE 2024 · 85 citations
- No More Labelled Examples? An Unsupervised Log Parser with LLMsJunjie Huang, Zhihan Jiang, Zhuangbin Chen, Michael R. LyuFSE 2025 · 13 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
Builds on6
- DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep LearningMin Du, Feifei Li, Guineng Zheng, Vivek SrikumarCCS 2017 · 1,823 citations
- UniParser: A Unified Log Parser for Heterogeneous Log DataYudong Liu, Xu Zhang, Shilin He, Hongyu Zhang et al.WWW 2022 · 148 citations
- Guidelines for Assessing the Accuracy of Log Message Template Identification TechniquesZanis Ali Khan, Donghwan Shin, Domenico Bianculli, Lionel C. BriandICSE 2022 · 77 citations
- SemParser: A Semantic Parser for Log AnalyticsYintong Huo, Yuxin Su, Cheryl Lee, Michael R. LyuICSE 2023 · 51 citations
- SPINE: a scalable log parser with feedback guidanceXuheng Wang, Xu Zhang, Liqun Li, Shilin He et al.FSE 2022 · 48 citations
Related papers
- AS-Parser: Log Parsing Based on Adaptive SegmentationXiaolei Chen, Peng Wang, Jia Chen, Wei WangSIGMOD 2024 · 4 citations
- Log Parsing with Prompt-based Few-shot LearningVan-Hoang Le, Hongyu ZhangICSE 2023 · 98 citations
- Log Parsing with Generalization Ability under New Log TypesSiyu Yu, Yifan Wu, Zhijing Li, Pinjia He et al.FSE 2023 · 14 citations
- DivLog: Log Parsing with Prompt Enhanced In-Context LearningJunjielong Xu, Ruichun Yang, Yintong Huo, Chengyu Zhang et al.ICSE 2024 · 54 citations
- LogParser-LLM: Advancing Efficient Log Parsing with Large Language ModelsAoxiao Zhong, Dengyao Mo, Guiyang Liu, Jinbu Liu et al.KDD 2024 · 41 citations
