Log Parsing with Prompt-based Few-shot Learning
Abstract
Logs generated by large-scale software systems provide crucial information for engineers to understand the system status and diagnose problems of the systems. Log parsing, which converts raw log messages into structured data, is the first step to enabling automated log analytics. Existing log parsers extract the common part as log templates using statistical features. However, these log parsers often fail to identify the correct templates and parameters because: 1) they often overlook the semantic meaning of log messages, and 2) they require domain-specific knowledge for different log datasets. To address the limitations of existing methods, in this paper, we propose LogPPT to capture the patterns of templates using prompt-based few-shot learning. LogPPT utilises a novel prompt tuning method to recognise keywords and parameters based on a few labelled log data. In addition, an adaptive random sampling algorithm is designed to select a small yet diverse training set. We have conducted extensive experiments on 16 public log datasets. The experimental results show that LogPPT is effective and efficient for 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.
21 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
- OWL: A Large Language Model for IT Operations cites DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
- Log-based Anomaly Detection with Deep Learning: How Far Are We? cites Log-based Anomaly Detection Without Log Parsing
- Log-based Anomaly Detection Without Log Parsing cites DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
- LILAC: Log Parsing using LLMs with Adaptive Parsing Cache cites Log-based Anomaly Detection with Deep Learning: How Far Are We?
- DivLog: Log Parsing with Prompt Enhanced In-Context Learning cites No more fine-tuning? an experimental evaluation of prompt tuning in code intelligence
- DivLog: Log Parsing with Prompt Enhanced In-Context Learning cites DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
Cited by top-tier papers21
- Characterization of Large Language Model Development in the DatacenterQinghao Hu, Zhisheng Ye, Zerui Wang, Guoteng Wang et al.NSDI 2024 · 192 citations
- LILAC: Log Parsing using LLMs with Adaptive Parsing CacheZhihan Jiang, Jinyang Liu, Zhuangbin Chen, Yichen Li et al.FSE 2024 · 85 citations
- LLMParser: An Exploratory Study on Using Large Language Models for Log ParsingZeyang Ma, An Ran Chen, Dong Jae Kim, Tse-Hsun Chen et al.ICSE 2024 · 72 citations
- OWL: A Large Language Model for IT OperationsHongcheng Guo, Jian Yang, Jiaheng Liu, Liqun Yang et al.ICLR 2024 · 64 citations
- DivLog: Log Parsing with Prompt Enhanced In-Context LearningJunjielong Xu, Ruichun Yang, Yintong Huo, Chengyu Zhang et al.ICSE 2024 · 54 citations
Builds on11
- DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep LearningMin Du, Feifei Li, Guineng Zheng, Vivek SrikumarCCS 2017 · 1,823 citations
- Template-Based Named Entity Recognition Using BARTLeyang Cui, Yu Wu, Jian Liu, Sen Yang et al.ACL Findings 2021 · 342 citations
- Log-based Anomaly Detection Without Log ParsingVan-Hoang Le, Hongyu ZhangASE 2021 · 249 citations
- Log-based Anomaly Detection with Deep Learning: How Far Are We?Van-Hoang Le, Hongyu ZhangICSE 2022 · 212 citations
- No more fine-tuning? an experimental evaluation of prompt tuning in code intelligenceChaozheng Wang, Yuanhang Yang, Cuiyun Gao, Yun Peng et al.FSE 2022 · 148 citations
Related papers
- PreLog: A Pre-trained Model for Log AnalyticsVan-Hoang Le, Hongyu ZhangSIGMOD 2024 · 30 citations
- Demonstration-Free: Towards More Practical Log Parsing with Large Language ModelsYi Xiao, Van-Hoang Le, Hongyu ZhangASE 2024 · 9 citations
- UniParser: A Unified Log Parser for Heterogeneous Log DataYudong Liu, Xu Zhang, Shilin He, Hongyu Zhang et al.WWW 2022 · 148 citations
- SemParser: A Semantic Parser for Log AnalyticsYintong Huo, Yuxin Su, Cheryl Lee, Michael R. LyuICSE 2023 · 51 citations
- Log Parsing with Generalization Ability under New Log TypesSiyu Yu, Yifan Wu, Zhijing Li, Pinjia He et al.FSE 2023 · 14 citations
