AI-Powered Root Cause Analysis Assistant for Race Day Operations

formula_1 · Automotive · 2025 · source Agentic: yes · promotional bias: med · source-backed · extracted with prompt 0.5.4 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Race-day IT operations and incident response

Formula 1 needed to shorten root-cause analysis for critical live-event IT issues that crossed APIs, networks, databases, logs, incident tools, and multiple engineering teams.

Constraints:

Architecture

F1 and AWS built a chat-based RCA assistant on Amazon Bedrock. Raw logs flow into S3, hourly EventBridge jobs trigger AWS Glue and Spark ETL, transformed logs are stored in S3 and ingested into Amazon Bedrock Knowledge Bases, and Amazon Bedrock Agents use Claude 3 Sonnet to plan, retrieve, call controlled tools, and generate troubleshooting answers. The agent can query knowledge bases, approved SQL checks, Boto3 API checks, Datadog, and Jira, while a Streamlit UI exposes the final answer and a hidden orchestration trace for review.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  raw-log-s3-bucket["raw-log-s3-bucket"] --> eventbridge-etl-scheduler["eventbridge-etl-scheduler"]
  eventbridge-etl-scheduler --> glue-spark-etl["glue-spark-etl"]
  glue-spark-etl --> transformed-log-s3-bucket["transformed-log-s3-bucket"]
  transformed-log-s3-bucket --> bedrock-knowledge-bases["bedrock-knowledge-bases"]
  bedrock-knowledge-bases --> bedrock-rca-agent["bedrock-rca-agent"]
  bedrock-rca-agent --> controlled-health-check-tools["controlled-health-check-tools"]
  bedrock-rca-agent --> streamlit-chat-ui["streamlit-chat-ui"]
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
raw-log-s3-bucket Central landing zone for raw operational log files. eventbridge-etl-scheduler
eventbridge-etl-scheduler Hourly scheduler that detects new log files and starts the transformation pipeline. raw-log-s3-bucket, glue-spark-etl
glue-spark-etl Standardizes, filters, and aggregates log data to improve retrieval accuracy, cost, and performance. eventbridge-etl-scheduler, transformed-log-s3-bucket
transformed-log-s3-bucket Stores processed logs ready for knowledge-base ingestion. bedrock-knowledge-bases
bedrock-knowledge-bases Managed RAG layer over transformed logs and business data sources. bedrock-rca-agent
bedrock-rca-agent Plans troubleshooting steps, retrieves evidence, invokes tools, and consolidates final answers. bedrock-knowledge-bases, controlled-health-check-tools, streamlit-chat-ui
controlled-health-check-tools Predefined SQL, Boto3, Datadog, and Jira actions used for live system checks and incident workflow. bedrock-rca-agent
streamlit-chat-ui Chat frontend that displays neutral answers and optional orchestration traces. bedrock-rca-agent

Data flow

Raw operational logs are centralized in S3. EventBridge checks hourly for new files and starts Glue/Spark ETL to standardize schemas, remove unused columns, and aggregate data at minute granularity. Transformed logs are stored in another S3 bucket and fed into Bedrock Knowledge Bases. A user asks the Streamlit chat assistant a natural-language question; Bedrock Agents create an execution plan, retrieve relevant documents, invoke controlled database/API/monitoring/incident tools, consolidate tool and retrieval outputs, and generate a final answer with a trace available for inspection.

4 supporting quotes
“To handle the log data efficiently, raw logs were centralized into an Amazon Simple Storage Service (Amazon S3) bucket.”article, stated
“An Amazon EventBridge schedule checked this bucket hourly for new files and triggered log transformation extract, transform, and load (ETL) pipelines built using AWS Glue and Apache Spark.”article, stated
“The transformed logs were stored in a separate S3 bucket, while another EventBridge schedule fed these transformed logs into Amazon Bedrock Knowledge Bases, an end-to-end managed [Retrieval Augmented Generation](https://aws.amazon.com/what-is/retrie”article, stated
“After the agent receives documents from the knowledge base and responses from tool APIs, it consolidates the information”article, stated

Why this architecture

The architecture mirrors F1's manual troubleshooting process while making it queryable through a managed agentic RAG stack. ETL reduces noisy log volume before retrieval, Knowledge Bases grounds answers in transformed logs, Bedrock Agents add multi-step planning and tool invocation, and controlled SQL/API checks preserve least-privilege safety. The Streamlit UI separates concise answers from traces so engineers can inspect retrieval and tool execution when needed.

4 supporting quotes
“The objective was to use AWS to replicate and automate the current manual troubleshooting process for two candidate systems.”article, stated
“This removed a considerable amount of data in the ETL process even before ingesting into the knowledge base.”article, stated
“The RCA agent considers the tools and knowledge bases available, then intelligently and autonomously creates an execution plan.”article, stated
“The trace can be reviewed and examined by the user to make sure that the correct tools are invoked and the correct documents are retrieved”article, stated

Models used: Amazon Bedrock Agents · Amazon Bedrock Knowledge Bases · Anthropic Claude 3 Sonnet · AWS Glue · Apache Spark · Streamlit

Scale

Alternatives considered (roads not taken)

manual cross-team incident investigation

Rejected because: It required weeks of triage, log review, anomaly inspection, and iteration across several teams and live events.

“requiring investigations across teams including development, operations, infrastructure, and networking.”article, stated
“reviewing logs, inspecting anomalies, and iterating on the fixes,” says Lee Wright, head of IT Operations at Formula 1. Recognizing this challenge as an opportunity for innovation, F1 partnered with Amazon Web Services (AWS) to develop an AI-driven solution using [Amazon B”article, stated

feeding raw logs directly to the assistant

Rejected because: The system needed standardized formats, less irrelevant data, and lower retrieval cost before knowledge-base ingestion.

“Conforming the data to a unified format helps the chat assistant understand the data more thoroughly, improving output accuracy.”article, stated
“it reduced costs in the embeddings process because less data is used to transform and tokenize into the vector database.”article, stated

letting the LLM create ad hoc SQL queries or health checks

Rejected because: That would increase hallucination, prompt-injection, and risky-syntax exposure; F1 used predefined least-privilege checks instead.

“agents aren’t allowed to create their own database queries or system health checks on the fly.”article, stated
“Instead, a series of controlled SQL queries and API checks were implemented, following the principle of least privilege (PoLP).”article, stated

Patterns

rag-retrieval (knowledge-grounding)

Transformed logs are ingested into Bedrock Knowledge Bases so the RCA assistant can retrieve operational context before answering.

“The transformed logs were stored in a separate S3 bucket, while another EventBridge schedule fed these transformed logs into Amazon Bedrock Knowledge Bases, an end-to-end managed [Retrieval Augmented Generation](https://aws.amazon.com/what-is/retrie”article, stated

tool-use-orchestration (agent-architecture)

Bedrock Agents create troubleshooting plans and invoke databases, EC2 checks, Datadog, Jira, and knowledge bases as tools.

“They use the provided instruction to create an orchestration plan and then carry out the plan by invoking company APIs and accessing knowledge bases”article, stated
“querying database statuses to check their health, querying Datadog for live application monitoring, and raising Jira tickets”article, stated

guardrails-io-filtering (safety)

The system constrains agent actions to controlled SQL/API checks, schema validation, encryption, and least-privilege access.

“agents aren’t allowed to create their own database queries or system health checks on the fly.”article, stated
“This layer also validates the input and output schema”article, stated

observability-tracing (operations)

The chat UI exposes hidden orchestration traces so engineers can inspect the tools and documents behind an answer.

“On the right is the trace of LLM agent orchestration plans and executions, which is hidden by default”article, stated

Tradeoffs

Aggregate logs to minute-level granularity.

Chose one aggregated event per minute over keeping all per-request response-time points in retrieval.

Rationale: Minute-level aggregation preserved what users needed to find incident timing while reducing the amount of data the assistant had to analyze.

“Users only need to know by the minute when a problem occurred, so aggregating data at the minute level helped to reduce the data size.”article, stated
“This single aggregated event contains attributes such as the maximum time taken to fulfill a request”article, stated

Use controlled tool APIs rather than model-generated queries.

Chose predefined SQL and API checks over LLM-authored database queries and system health checks.

Rationale: The controlled-tool design reduced hallucination and prompt-injection risk while still letting the assistant inspect live system health.

“agents aren’t allowed to create their own database queries or system health checks on the fly.”article, stated
“Instead, a series of controlled SQL queries and API checks were implemented”article, stated

Hide orchestration traces by default while keeping them reviewable.

Chose clean final answer plus optional trace inspection over always exposing the full agent execution trace.

Rationale: The UI keeps responses concise for routine use but lets engineers inspect tool and document choices when correctness matters.

“On the left is the final neutral response based on the user’s questions. On the right is the trace of LLM agent orchestration plans and executions”article, stated
“which is hidden by default to keep the response clean and concise.”article, stated

Gotchas (what bit them)

Raw logs were not directly suitable for cost-effective, accurate RCA retrieval.

Root cause: Different sources used varied structures, schemas, column names, timestamp formats, and unnecessary fields.

Resolution: Standardize, filter, and aggregate logs before knowledge-base ingestion.

“data consumed from different sources and formats (such as structure, schema, column names, timestamp formats)”article, stated
“For this project, there was a simple three-step process for the log data transformation.”article, stated

Agent-created health checks would be unsafe for production systems.

Root cause: Hallucinations, prompt injections, and risky syntax could affect databases or infrastructure queries.

Resolution: Implement one explicit function per health check with least-privilege access and schema controls.

“To help protect these systems against potential hallucinations or even prompt injections”article, stated
“one explicit function per Health Check, to avoid potential LLM hallucinations or risky syntax errors.”article, stated

A concise chat answer could hide whether the agent used the right tools and documents.

Root cause: Agentic RAG involves multiple retrieval and tool steps whose correctness is not visible in a final answer alone.

Resolution: Show a hidden trace panel for orchestration plans, executions, invoked tools, and retrieved documents.

“The trace can be reviewed and examined by the user to make sure that the correct tools are invoked and the correct documents are retrieved”article, stated

Evaluation

F1 and AWS first ran a 5-week prototype over two candidate systems, then measured operational impact through response latency, initial triage time, end-to-end resolution time, and a recurring web API issue.

Metrics: 5-week prototype · two candidate systems · 5-10 second query response · initial triage from more than a day to less than 20 minutes · end-to-end time to resolution reduced by as much as 86% · recurring issue reduced from 15 engineer days to 3 days including deployment/testing

“F1 embarked on a 5-week prototype to demonstrate the feasibility of this solution.”article, stated
“The end-to-end time to resolution has been reduced by as much as 86%.”article, stated

Outcomes

The strongest reported numbers are 5-10 second query responses, triage below 20 minutes, 3-day resolution for a previously 15-engineer-day issue, and up to 86% end-to-end reduction.

3 supporting quotes
“Technical engineers can now query to investigate system errors and issues using natural language.”article, stated
“it also routes the issue to the correct team to resolve”article, stated
“When warranted, particularly challenging issues are automatically escalated to the F1 engineering team for investigation”article, stated