Log Parsing using LLMs with Self-Generated In-Context Learning and Self-Correction
Yifan Wu, Siyu Yu, Ying Li

TL;DR
AdaParser leverages large language models with self-generated in-context learning and self-correction to improve log parsing accuracy, especially on evolving data, outperforming existing methods in various scenarios.
Contribution
The paper introduces AdaParser, a novel framework that uses LLMs with self-generated in-context learning and self-correction, including a template corrector and dynamic candidate set, to enhance log parsing accuracy.
Findings
Outperforms state-of-the-art log parsers on large-scale datasets.
Effectively handles evolving log data with dynamic template adaptation.
Significantly improves LLM performance in zero-shot log parsing scenarios.
Abstract
Log parsing transforms log messages into structured formats, serving as a crucial step for log analysis. Despite a variety of log parsers that have been proposed, their performance on evolving log data remains unsatisfactory due to reliance on human-crafted rules or learning-based models with limited training data. The recent emergence of large language models (LLMs) has demonstrated strong abilities in understanding natural language and code, making it promising to apply LLMs for log parsing. Consequently, several studies have proposed LLM-based log parsers. However, LLMs may produce inaccurate templates, and existing LLM-based log parsers directly use the template generated by the LLM as the parsing result, hindering the accuracy of log parsing. Furthermore, these log parsers depend heavily on historical log data as demonstrations, which poses challenges in maintaining accuracy when…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSpeech and dialogue systems
