Skip to main content
QUICK REVIEW

[Paper Review] Automatic Root Cause Analysis via Large Language Models for Cloud Incidents

Yinfang Chen, Huaibing Xie|arXiv (Cornell University)|May 25, 2023
Software System Performance and ReliabilityComputer Science6 citations
TL;DR

This paper proposes RCACopilot, an LLM-powered system that automates root cause analysis (RCA) for cloud incidents by aggregating multi-source diagnostic data (logs, metrics, traces) and using large language models to predict and explain root cause categories. Evaluated on a real-world Microsoft dataset, RCACopilot achieves an RCA accuracy of up to 0.766, significantly reducing manual effort for on-call engineers.

ABSTRACT

Ensuring the reliability and availability of cloud services necessitates efficient root cause analysis (RCA) for cloud incidents. Traditional RCA methods, which rely on manual investigations of data sources such as logs and traces, are often laborious, error-prone, and challenging for on-call engineers. In this paper, we introduce RCACopilot, an innovative on-call system empowered by the large language model for automating RCA of cloud incidents. RCACopilot matches incoming incidents to corresponding incident handlers based on their alert types, aggregates the critical runtime diagnostic information, predicts the incident's root cause category, and provides an explanatory narrative. We evaluate RCACopilot using a real-world dataset consisting of a year's worth of incidents from Microsoft. Our evaluation demonstrates that RCACopilot achieves RCA accuracy up to 0.766. Furthermore, the diagnostic information collection component of RCACopilot has been successfully in use at Microsoft for over four years.

Motivation & Objective

  • To address the time-consuming, error-prone nature of manual root cause analysis (RCA) in complex cloud systems.
  • To reduce on-call engineers' cognitive load by automating the collection and interpretation of diagnostic data from logs, metrics, and traces.
  • To improve RCA accuracy and speed by leveraging large language models (LLMs) for root cause prediction and explanation.
  • To enable scalable, generalizable incident handling through predefined incident handlers and LLM-driven diagnosis.
  • To integrate diagnostic data collection and LLM-based RCA into a single, production-ready system for real-world cloud environments.

Proposed method

  • RCACopilot uses incident handlers—engineer-defined logic modules—to match incoming alerts to appropriate on-call teams and initiate diagnostic data collection.
  • It aggregates critical runtime diagnostic information from logs, metrics, and traces based on alert type and system context.
  • The system employs a large language model (LLM) to process the collected diagnostic data and predict the root cause category using chain-of-thought reasoning.
  • The LLM generates an explanatory narrative for the predicted root cause, enhancing transparency and aiding engineer understanding.
  • The diagnostic data collection component has been productionized at Microsoft for over four years, ensuring robustness and scalability.
  • The system is evaluated using a real-world dataset of one year’s worth of incidents from Microsoft’s cloud services.
Figure 2 . Recurring incidents proportion vs. time interval.
Figure 2 . Recurring incidents proportion vs. time interval.

Experimental results

Research questions

  • RQ1Can an LLM-based system effectively predict root cause categories for cloud incidents using aggregated multi-source diagnostic data?
  • RQ2How does the accuracy of LLM-powered RCA compare to traditional manual methods in real-world production environments?
  • RQ3To what extent can predefined incident handlers improve the consistency and efficiency of diagnostic data collection?
  • RQ4How well does the system generalize across diverse incident types and cloud service workloads?
  • RQ5What is the impact of LLM-generated explanations on on-call engineers’ decision-making and incident resolution speed?

Key findings

  • RCACopilot achieves a root cause analysis accuracy of up to 0.766 on a real-world dataset of Microsoft cloud incidents.
  • The diagnostic information collection component of RCACopilot has been in production use at Microsoft for over four years, demonstrating long-term stability and reliability.
  • The system effectively reduces manual effort by automating the aggregation of logs, metrics, and traces based on alert types and incident context.
  • The LLM-based root cause prediction stage leverages chain-of-thought reasoning to generate interpretable explanations, improving transparency and trust.
  • The system’s performance is constrained in cases where monitors fail to detect incidents or when no corresponding handler exists for a given alert type.
  • Despite LLM instability across rounds, the evaluation results show consistent performance, with careful code validation mitigating implementation bias.
Figure 3 . Distribution of incident category frequency.
Figure 3 . Distribution of incident category frequency.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.