SemParser: A Semantic Parser for Log Analytics
Yintong Huo, Yuxin Su, Cheryl Lee, Michael R. Lyu
Abstract
Logs, being run-time information automatically generated by software, record system events and activities with their timestamps. Before obtaining more insights into the run-time status of the software, a fundamental step of log analysis, called log parsing, is employed to extract structured templates and parameters from the semi-structured raw log messages. However, current log parsers are all syntax-based and regard each message as a character string, ignoring the semantic information included in parameters and templates. Thus, we propose the first semantic-based parser SemParser to unlock the critical bottleneck of mining semantics from log messages. It contains two steps, an end-to-end semantics miner and a joint parser. Specifically, the first step aims to identify explicit semantics inside a single log, and the second step is responsible for jointly inferring implicit semantics and computing structural outputs according to the contextual knowledge base of the logs. To analyze the effectiveness of our semantic parser, we first demonstrate that it can derive rich semantics from log messages collected from six widely-applied systems with an average F1 score of 0.985. Then, we conduct two representative downstream tasks, showing that current downstream models improve their performance with appropriately extracted semantics by 1.2%-11.7% and 8.65% on two anomaly detection datasets and a failure identification dataset, respectively. We believe these findings provide insights into semantically understanding log messages for the log analysis community.
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.
12 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
- LogParser-LLM: Advancing Efficient Log Parsing with Large Language Models cites DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
- Twin Graph-Based Anomaly Detection via Attentive Multi-Modal Learning for Microservice System cites DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
- LILAC: Log Parsing using LLMs with Adaptive Parsing Cache cites Hue: A User-Adaptive Parser for Hybrid Logs
- Hue: A User-Adaptive Parser for Hybrid Logs cites DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
- Face It Yourselves: An LLM-Based Two-Stage Strategy to Localize Configuration Errors via Logs cites DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
Cited by top-tier papers12
- LILAC: Log Parsing using LLMs with Adaptive Parsing CacheZhihan Jiang, Jinyang Liu, Zhuangbin Chen, Yichen Li et al.FSE 2024 · 85 citations
- LogParser-LLM: Advancing Efficient Log Parsing with Large Language ModelsAoxiao Zhong, Dengyao Mo, Guiyang Liu, Jinbu Liu et al.KDD 2024 · 41 citations
- Twin Graph-Based Anomaly Detection via Attentive Multi-Modal Learning for Microservice SystemJun Huang, Yang Yang, Hang Yu, Jianguo Li et al.ASE 2023 · 32 citations
- Hue: A User-Adaptive Parser for Hybrid LogsJunjielong Xu, Qiuai Fu, Zhouruixing Zhu, Yutong Cheng et al.FSE 2023 · 18 citations
- Face It Yourselves: An LLM-Based Two-Stage Strategy to Localize Configuration Errors via LogsShiwen Shan, Yintong Huo, Yuxin Su, Yichen Li et al.ISSTA 2024 · 18 citations
Builds on2
Related papers
- Log-based Anomaly Detection Without Log ParsingVan-Hoang Le, Hongyu ZhangASE 2021 · 249 citations
- UniParser: A Unified Log Parser for Heterogeneous Log DataYudong Liu, Xu Zhang, Shilin He, Hongyu Zhang et al.WWW 2022 · 148 citations
- PreLog: A Pre-trained Model for Log AnalyticsVan-Hoang Le, Hongyu ZhangSIGMOD 2024 · 30 citations
- LogBase: A Large-Scale Benchmark for Semantic Log ParsingChenbo Zhang, Wenying Xu, Jinbu Liu, Lu Zhang et al.ISSTA 2025 · 5 citations
- AS-Parser: Log Parsing Based on Adaptive SegmentationXiaolei Chen, Peng Wang, Jia Chen, Wei WangSIGMOD 2024 · 4 citations
