Interpretable Online Log Analysis Using Large Language Models with Prompt Strategies

计算机科学 自然语言处理 人工智能
作者
Yilun Liu,Shimin Tao,Weibin Meng,Jingyu Wang,Wenbing Ma,Yuhang Chen,Yanqing Zhao,Hao Yang,Yanfei Jiang
标识
DOI:10.1145/3643916.3644408
摘要

Automated log analysis is crucial in modern software-intensive systems for facilitating program comprehension throughout software maintenance and engineering life cycles. Existing methods perform tasks such as log parsing and log anomaly detection by providing a single prediction value without interpretation. However, given the increasing volume of system events, the limited interpretability of analysis results hinders analysts' comprehension of program status and their ability to take appropriate actions. Moreover, these methods require substantial in-domain training data, and their performance declines sharply (by up to 62.5%) in online scenarios involving unseen logs from new domains, a common occurrence due to rapid software updates. In this paper, we propose LogPrompt, a novel interpretable log analysis approach for online scenarios. LogPrompt employs large language models (LLMs) to perform online log analysis tasks via a suite of advanced prompt strategies tailored for log tasks, which enhances LLMs' performance by up to 380.7% compared with simple prompts. Experiments on nine publicly available evaluation datasets across two tasks demonstrate that LogPrompt, despite requiring no in-domain training, outperforms existing approaches trained on thousands of logs by up to 55.9%. We also conduct a human evaluation of LogPrompt's interpretability, with six practitioners possessing over 10 years of experience, who highly rated the generated content in terms of usefulness and readability (averagely 4.42/5). LogPrompt also exhibits remarkable compatibility with open-source and smaller-scale LLMs, making it flexible for practical deployment. Code of LogPrompt is available at https://github.com/lunyiliu/LogPrompt.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
Lucas应助称心忆寒采纳,获得10
刚刚
DONG发布了新的文献求助10
刚刚
积极的吐司完成签到,获得积分10
3秒前
RE完成签到,获得积分10
3秒前
4秒前
乐乐应助济襄采纳,获得30
5秒前
上官若男应助青云之志采纳,获得10
5秒前
秋津神奈完成签到,获得积分10
5秒前
研友_VZG7GZ应助道尔顿分压采纳,获得10
6秒前
xxxxxxxx发布了新的文献求助10
6秒前
万能图书馆应助jm采纳,获得10
7秒前
zeng应助纯真三颜采纳,获得10
7秒前
7秒前
7秒前
7秒前
8秒前
科研通AI6.4应助缥缈静珊采纳,获得10
8秒前
科研通AI6.4应助mxy126354采纳,获得10
9秒前
高尚卿发布了新的文献求助10
9秒前
李爱国应助谦让的烧鹅采纳,获得10
9秒前
peterlee完成签到,获得积分10
9秒前
kiraqtj发布了新的文献求助20
9秒前
小鱼完成签到,获得积分10
11秒前
Nole应助科研通管家采纳,获得10
11秒前
李爱国应助科研通管家采纳,获得10
11秒前
11秒前
11秒前
小马甲应助科研通管家采纳,获得10
11秒前
科研通AI6.4应助monica采纳,获得10
11秒前
英姑应助科研通管家采纳,获得10
11秒前
赵欢欢发布了新的文献求助10
11秒前
传奇3应助六芒鸭采纳,获得10
11秒前
Nole应助科研通管家采纳,获得10
12秒前
12秒前
隐形曼青应助科研通管家采纳,获得10
12秒前
简单的小夏完成签到 ,获得积分10
12秒前
SciGPT应助科研通管家采纳,获得10
12秒前
12秒前
打打应助科研通管家采纳,获得10
12秒前
领导范儿应助科研通管家采纳,获得10
12秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Essentials of Carbohydrate Chemistry and Biochemistry, 4th Edition 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
A Case Study on Hotels as Noncongregate Emergency Living Accommodations for Returning Citizens 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 计算机科学 化学工程 工程类 有机化学 物理 复合材料 生物化学 内科学 细胞生物学 基因 遗传学 免疫学 冶金 光电子学 癌症研究
热门帖子
关注 科研通微信公众号,转发送积分 7764382
求助须知:如何正确求助?哪些是违规求助? 9308581
关于积分的说明 20306689
捐赠科研通 7348987
什么是DOI,文献DOI怎么找? 3314361
关于科研通互助平台的介绍 2463914
邀请新用户注册赠送积分活动 2328488