DivLog: Log Parsing with Prompt Enhanced In-Context Learning

计算机科学 解析 背景(考古学) 人工智能 自然语言处理 历史 考古
作者
Junjun 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
更新
大幅提高文件上传限制,最高150M (2024-4-1)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
刚刚
newfat应助RR采纳,获得30
1秒前
SUN完成签到,获得积分10
2秒前
邓博完成签到,获得积分10
5秒前
乘舟江行完成签到,获得积分10
9秒前
丸子完成签到 ,获得积分10
9秒前
yangy115完成签到,获得积分10
9秒前
昭明完成签到,获得积分10
11秒前
晓晨完成签到 ,获得积分10
12秒前
Rabbit完成签到 ,获得积分10
12秒前
12秒前
jhcraul完成签到,获得积分10
15秒前
明理的又菡完成签到,获得积分10
18秒前
甜晞完成签到,获得积分10
19秒前
丘山完成签到,获得积分10
19秒前
烫嘴普通话完成签到,获得积分10
19秒前
LIJINGGE完成签到,获得积分10
20秒前
22秒前
Wang发布了新的文献求助10
28秒前
江哥完成签到,获得积分10
31秒前
32秒前
xuedan3000完成签到 ,获得积分10
32秒前
萱哥完成签到 ,获得积分10
32秒前
lingling完成签到 ,获得积分10
35秒前
pj发布了新的文献求助10
38秒前
alvin完成签到,获得积分10
43秒前
Jasper应助pj采纳,获得10
45秒前
zq完成签到 ,获得积分10
50秒前
林林六完成签到 ,获得积分10
50秒前
来自DF的小白完成签到,获得积分10
52秒前
科研小南瓜完成签到 ,获得积分10
55秒前
朝阳完成签到 ,获得积分10
57秒前
欣欣子完成签到 ,获得积分10
58秒前
哭泣的映寒完成签到 ,获得积分10
59秒前
豪豪完成签到,获得积分10
1分钟前
勤奋的汽车完成签到,获得积分10
1分钟前
kangwer完成签到,获得积分10
1分钟前
33完成签到,获得积分10
1分钟前
秋之至完成签到,获得积分10
1分钟前
土豆国王完成签到 ,获得积分10
1分钟前
高分求助中
Teaching Social and Emotional Learning in Physical Education 900
Plesiosaur extinction cycles; events that mark the beginning, middle and end of the Cretaceous 500
Two-sample Mendelian randomization analysis reveals causal relationships between blood lipids and venous thromboembolism 500
Chinese-English Translation Lexicon Version 3.0 500
[Lambert-Eaton syndrome without calcium channel autoantibodies] 440
薩提亞模式團體方案對青年情侶輔導效果之研究 400
3X3 Basketball: Everything You Need to Know 310
热门求助领域 (近24小时)
化学 材料科学 医学 生物 有机化学 工程类 生物化学 纳米技术 物理 内科学 计算机科学 化学工程 复合材料 遗传学 基因 物理化学 催化作用 电极 光电子学 量子力学
热门帖子
关注 科研通微信公众号,转发送积分 2387627
求助须知:如何正确求助?哪些是违规求助? 2094007
关于积分的说明 5270272
捐赠科研通 1820770
什么是DOI,文献DOI怎么找? 908273
版权声明 559267
科研通“疑难数据库(出版商)”最低求助积分说明 485216