LILAC: Log Parsing using LLMs with Adaptive Parsing Cache

解析 丁香花 计算机科学 隐藏物 程序设计语言 人工智能 并行计算 生物 植物
作者
Zhihan Jiang,Jinyang Liu,Zhuangbin Chen,Yichen Li,Junjie Huang,Yintong Huo,Pinjia He,Jiazhen Gu,Michael R. Lyu
标识
DOI:10.1145/3643733
摘要

Log parsing transforms log messages into structured formats, serving as the prerequisite step for various log analysis tasks. Although a variety of log parsing approaches have been proposed, their performance on complicated log data remains compromised due to the use of human-crafted rules or learning-based models with limited training data. The recent emergence of powerful large language models (LLMs) demonstrates their vast pre-trained knowledge related to code and logging, making it promising to apply LLMs for log parsing. However, their lack of specialized log parsing capabilities currently hinders their parsing accuracy. Moreover, the inherent inconsistent answers, as well as the substantial overhead, prevent the practical adoption of LLM-based log parsing. To address these challenges, we propose LILAC, the first practical Log parsIng framework using LLMs with Adaptive parsing Cache. To facilitate accurate and robust log parsing, LILAC leverages the in-context learning (ICL) capability of the LLM by performing a hierarchical candidate sampling algorithm and selecting high-quality demonstrations. Furthermore, LILAC incorporates a novel component, an adaptive parsing cache, to store and refine the templates generated by the LLM. It helps mitigate LLM's inefficiency issue by enabling rapid retrieval of previously processed log templates. In this process, LILAC adaptively updates the templates within the parsing cache to ensure the consistency of parsed results. The extensive evaluation on public large-scale datasets shows that LILAC outperforms state-of-the-art methods by 69.5% in terms of the average F1 score of template accuracy. In addition, LILAC reduces the query times to LLMs by several orders of magnitude, achieving a comparable efficiency to the fastest baseline.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
ttly完成签到,获得积分10
1秒前
AZ发布了新的文献求助10
1秒前
敏感寒云完成签到,获得积分10
2秒前
2秒前
福瑞灯完成签到,获得积分10
3秒前
田様应助xue采纳,获得10
3秒前
4秒前
韩豆乐完成签到,获得积分10
6秒前
脑洞疼应助wuqi采纳,获得10
6秒前
7秒前
大方雨灵完成签到,获得积分10
7秒前
炙热老黑应助Sea_U采纳,获得10
9秒前
befond完成签到,获得积分10
10秒前
Owen应助小羊采纳,获得10
10秒前
10秒前
智闭郑完成签到,获得积分10
13秒前
llll完成签到,获得积分20
13秒前
科研通AI6.1应助11采纳,获得10
13秒前
15秒前
16秒前
羡鱼发布了新的文献求助10
17秒前
大胆凡白完成签到 ,获得积分10
18秒前
19秒前
19秒前
Faint_Dream完成签到,获得积分10
19秒前
20秒前
21秒前
coolru发布了新的文献求助10
21秒前
21秒前
21秒前
22秒前
22秒前
vvA11发布了新的文献求助10
23秒前
23秒前
Hello应助worm采纳,获得10
23秒前
OJAPH发布了新的文献求助10
23秒前
23秒前
beizi完成签到,获得积分10
24秒前
Ava应助Fine采纳,获得10
24秒前
聿潇完成签到,获得积分20
24秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
The Organometallic Chemistry of the Transition Metals 800
Chemistry and Physics of Carbon Volume 18 800
The Organometallic Chemistry of the Transition Metals 800
The formation of Australian attitudes towards China, 1918-1941 640
Signals, Systems, and Signal Processing 610
全相对论原子结构与含时波包动力学的理论研究--清华大学 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 物理 内科学 复合材料 催化作用 物理化学 光电子学 电极 细胞生物学 基因 无机化学
热门帖子
关注 科研通微信公众号,转发送积分 6441943
求助须知:如何正确求助?哪些是违规求助? 8255854
关于积分的说明 17579385
捐赠科研通 5500641
什么是DOI,文献DOI怎么找? 2900348
邀请新用户注册赠送积分活动 1877230
关于科研通互助平台的介绍 1717112