arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.00640cs.SEcs.LG
收藏

自己面对它:一种基于大语言模型的两阶段策略,通过日志定位配置错误

Face It Yourselves: An LLM-Based Two-Stage Strategy to Localize Configuration Errors via Logs

Sun Yat-sen University(中山大学);Chinese University of Hong Kong(香港中文大学)

Shiwen Shan, Yintong Huo, Yuxin Su, Yichen Li, Dan Li, Zibin Zheng

AI总结:

本文提出一种基于大语言模型的两阶段策略及工具 LogConfigLocalizer,通过日志分析帮助终端用户定位配置错误的根本原因属性,在 Hadoop 上平均准确率达 99.91%。

摘要:

可配置软件系统容易发生配置错误,给企业带来重大损失。然而,由于配置空间庞大且复杂,诊断这些错误极具挑战性。这些错误对有经验的维护者和新终端用户都构成了重大挑战,尤其是那些无法访问软件系统源代码的用户。鉴于大多数终端用户都能轻松获取日志,我们开展了一项初步研究,以概述利用日志定位配置错误所面临的挑战和机遇。基于初步研究获得的见解,我们提出了一种基于大语言模型(LLM)的两阶段策略,帮助终端用户根据日志定位根本原因配置属性。我们进一步实现了一个工具 LogConfigLocalizer,其设计与上述策略保持一致,希望通过日志分析帮助终端用户应对配置错误。\n据我们所知,这是首个基于大语言模型(LLMs)和日志为终端用户定位根本原因配置属性的工作。我们通过 LogConfigLocalizer 在 Hadoop 上评估了所提出的策略,并证明了其高效性,平均准确率高达 99.91%。此外,我们还通过将该方法与另外两个变体和一个基线工具进行比较,展示了该方法不同阶段的有效性和必要性。此外,我们通过一个实际案例研究验证了所提出的方法,以证明其有效性和可行性。

英文摘要:

Configurable software systems are prone to configuration errors, resulting in significant losses to companies. However, diagnosing these errors is challenging due to the vast and complex configuration space. These errors pose significant challenges for both experienced maintainers and new end-users, particularly those without access to the source code of the software systems. Given that logs are easily accessible to most end-users, we conduct a preliminary study to outline the challenges and opportunities of utilizing logs in localizing configuration errors. Based on the insights gained from the preliminary study, we propose an LLM-based two-stage strategy for end-users to localize the root-cause configuration properties based on logs. We further implement a tool, LogConfigLocalizer, aligned with the design of the aforementioned strategy, hoping to assist end-users in coping with configuration errors through log analysis. To the best of our knowledge, this is the first work to localize the root-cause configuration properties for end-users based on Large Language Models~(LLMs) and logs. We evaluate the proposed strategy on Hadoop by LogConfigLocalizer and prove its efficiency with an average accuracy as high as 99.91%. Additionally, we also demonstrate the effectiveness and necessity of different phases of the methodology by comparing it with two other variants and a baseline tool. Moreover, we validate the proposed methodology through a practical case study to demonstrate its effectiveness and feasibility.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑