DivLog: Log Parsing with Prompt Enhanced In-Context Learning

计算机科学 解析 启发式 背景(考古学) 下垂 人工智能 精确性和召回率 自然语言处理 对数图 机器学习 数据挖掘 二进制对数 历史 考古 古生物学 数学分析 操作系统 数学 生物
作者
Junjielong Xu,Ruichun Yang,Yintong Huo,Chengyu Zhang,Pinjia He
标识
DOI:10.1145/3597503.3639155
摘要

Log parsing, which involves log template extraction from semi-structured logs to produce structured logs, is the first and the most critical step in automated log analysis. However, current log parsers suffer from limited effectiveness for two reasons. First, traditional data-driven log parsers solely rely on heuristics or handcrafted features designed by domain experts, which may not consistently perform well on logs from diverse systems. Second, existing supervised log parsers require model tuning, which is often limited to fixed training samples and causes sub-optimal performance across the entire log source. To address this limitation, we propose DivLog, an effective log parsing framework based on the in-context learning (ICL) ability of large language models (LLMs). Specifically, before log parsing, DivLog samples a small amount of offline logs as candidates by maximizing their diversity. Then, during log parsing, DivLog selects five appropriate labeled candidates as examples for each target log and constructs them into a prompt. By mining the semantics of examples in the prompt, DivLog generates a target log template in a training-free manner. In addition, we design a straightforward yet effective prompt format to extract the output and enhance the quality of the generated log templates. We conducted experiments on 16 widely-used public datasets. The results show that DivLog achieves (1) 98.1% Parsing Accuracy, (2) 92.1% Precision Template Accuracy, and (3) 92.9% Recall Template Accuracy on average, exhibiting state-of-the-art performance.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
dly7777完成签到,获得积分10
1秒前
希望天下0贩的0应助pialala采纳,获得10
2秒前
aesrufk发布了新的文献求助10
2秒前
今后应助徐华采纳,获得10
2秒前
志在山野居完成签到,获得积分10
3秒前
3秒前
5秒前
DW应助qiuxuan100采纳,获得10
6秒前
6秒前
7秒前
11秒前
11秒前
陈博士发布了新的文献求助10
11秒前
zqt发布了新的文献求助10
12秒前
洋葱圈发布了新的文献求助10
12秒前
大画家发布了新的文献求助10
12秒前
12秒前
小二郎应助wangqing采纳,获得10
12秒前
顶刊相见完成签到,获得积分10
13秒前
13秒前
科研通AI6.4应助俞俊敏采纳,获得10
14秒前
云云完成签到,获得积分10
16秒前
16秒前
sy发布了新的文献求助10
17秒前
NexusExplorer应助aesrufk采纳,获得10
17秒前
酷波er应助yungzhi采纳,获得10
17秒前
水牛完成签到,获得积分10
17秒前
乐乐应助顶刊相见采纳,获得10
17秒前
pialala发布了新的文献求助10
19秒前
jack发布了新的文献求助10
19秒前
19秒前
yygz0703完成签到 ,获得积分10
19秒前
赵阳发布了新的文献求助10
19秒前
平淡的雨南完成签到 ,获得积分10
20秒前
20秒前
清脆的如柏完成签到 ,获得积分10
20秒前
yungzhi完成签到,获得积分10
20秒前
啦啦啦发布了新的文献求助10
21秒前
科目三应助Li采纳,获得10
21秒前
21秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Essentials of Carbohydrate Chemistry and Biochemistry, 4th Edition 800
Navigating Normative Orders. Interdisciplinary Perspectives 800
Organizational Behavior 510
Management and the Arts 510
Matrix Methods in Data Mining and Pattern Recognition Second Edition 510
CLSI VET01S-2024 Performance Standards for Antimicrobial Disk and Dilution Susceptibility Tests for Bacteria Isolated From Animals (7th Ed) 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7758888
求助须知:如何正确求助?哪些是违规求助? 9304675
关于积分的说明 20282383
捐赠科研通 7342810
什么是DOI,文献DOI怎么找? 3312329
关于科研通互助平台的介绍 2462936
邀请新用户注册赠送积分活动 2326319