揭秘并从日志中提取故障指示信息以进行故障诊断
Demystifying and Extracting Fault-indicating Information from Logs for Failure Diagnosis
AI总结:
针对人工排查日志故障耗时易错的问题,提出 LoFI 方法,通过粗粒度语义过滤与基于提示微调的预训练语言模型两阶段提取故障指示信息,在工业数据集上显著优于基线并已成功部署。
摘要:
日志在在线服务系统的维护中至关重要,其中通常包含用于有效缓解故障的重要信息。虽然现有的异常检测方法有助于在海量运行时数据中识别异常日志,但工程师仍需手动检查日志消息以理解故障,这一过程既耗费人力又容易出错。在考察 CloudA 基于日志的故障排查实践时,我们发现工程师通常优先关注两类日志信息进行诊断。这包括记录异常系统事件的故障指示描述,以及指定相关关联实体的故障指示参数。受此发现启发,我们提出了一种从日志中自动提取此类故障指示信息以进行故障诊断的方法,命名为 LoFI。LoFI 包含两个关键阶段。在第一阶段,LoFI 基于语义相似度执行粗粒度过滤,以收集与故障相关的日志。在第二阶段,LoFI 利用预训练语言模型结合一种新颖的基于提示的微调方法,从收集的日志中提取感兴趣的细粒度信息。我们在从 Apache Spark 收集的日志和来自 CloudA 的工业数据集上评估了 LoFI。实验结果表明,LoFI 以显著优势优于所有基线方法,与最佳基线方法 ChatGPT 相比,在 F1 上取得了 25.8~37.9 的绝对提升。这凸显了 LoFI 在识别故障指示信息方面的有效性。此外,LoFI 在 CloudA 的成功部署和用户研究验证了我们方法的实用性。代码和数据可在 https://github.com/Jun-jie-Huang/LoFI 获取。
英文摘要:
Logs are imperative in the maintenance of online service systems, which often encompass important information for effective failure mitigation. While existing anomaly detection methodologies facilitate the identification of anomalous logs within extensive runtime data, manual investigation of log messages by engineers remains essential to comprehend faults, which is labor-intensive and error-prone. Upon examining the log-based troubleshooting practices at CloudA, we find that engineers typically prioritize two categories of log information for diagnosis. These include fault-indicating descriptions, which record abnormal system events, and fault-indicating parameters, which specify the associated entities. Motivated by this finding, we propose an approach to automatically extract such faultindicating information from logs for fault diagnosis, named LoFI. LoFI comprises two key stages. In the first stage, LoFI performs coarse-grained filtering to collect logs related to the faults based on semantic similarity. In the second stage, LoFI leverages a pre-trained language model with a novel prompt-based tuning method to extract fine-grained information of interest from the collected logs. We evaluate LoFI on logs collected from Apache Spark and an industrial dataset from CloudA. The experimental results demonstrate that LoFI outperforms all baseline methods by a significant margin, achieving an absolute improvement of 25.8~37.9 in F1 over the best baseline method, ChatGPT. This highlights the effectiveness of LoFI in recognizing fault-indicating information. Furthermore, the successful deployment of LoFI at CloudA and user studies validate the utility of our method. The code and data are available at https://github.com/Jun-jie-Huang/LoFI.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。