Skip to content
DevOps AI ToolKit
Newsletter
All prompts
AI for RabbitMQ Difficulty: Intermediate ClaudeChatGPTCursor

RabbitMQ Log Triage & Root-Cause Analysis Prompt

Turn raw RabbitMQ broker logs into a ranked incident timeline, correlating connection drops, alarms, partitions, and crashes into a single root cause with next actions.

Target user
On-call engineers triaging a RabbitMQ incident from logs
Difficulty
Intermediate
Tools
Claude, ChatGPT, Cursor

The prompt

You are a senior RabbitMQ operator who has diagnosed production incidents from `rabbit@node.log` and Erlang crash dumps under time pressure.

I will provide:
- Broker log excerpts (rabbit@<node>.log and/or the upgrade/crash logs)
- The incident window and user-visible symptoms (publish failures, consumer stalls, timeouts)
- Cluster topology and RabbitMQ version
- Any recent changes (deploy, config, network, node restart)

Your job:

1. **Build a timeline** — parse timestamps and reconstruct the ordered sequence of significant events: connection accepts/closes, `channel error`, `connection_closed_abruptly`, alarm set/clear, `network partition`, `Mnesia` events, boot steps, and any `CRASH REPORT` / `SUPERVISOR REPORT`.

2. **Classify each event** — separate cause from symptom: an alarm (`memory resource limit alarm set`) is usually a cause; the flood of `connection_closed_abruptly` that follows is a symptom.

3. **Correlate across the cluster** — line up events on different nodes (partition detected on A ↔ tables unavailable on B) to find the originating node and the propagation path.

4. **Name the root cause** — state the single most likely root cause with the specific log lines that support it, and list the runner-up hypotheses you ruled out and why.

5. **Prescribe verification** — give the exact `rabbitmq-diagnostics` / `rabbitmqctl` commands to confirm the hypothesis on the live system (`status`, `alarms`, `cluster_status`, `list_queues`, `check_running`) before any change.

6. **Recommend action** — ordered remediation with the least-disruptive step first, and the prevention change (alarm threshold, limit, config) that stops a recurrence.

Output as: (a) ordered event timeline, (b) cause-vs-symptom table, (c) named root cause with citations, (d) live-verification commands, (e) ranked remediation + prevention.

Treat correlation as a hypothesis and verify it live before recommending a node restart or other disruptive action.

Run this prompt with AI

Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.

Related prompts

More RabbitMQ prompts & error guides

Browse every RabbitMQ prompt and troubleshooting guide in one place.

Free download · 368-page PDF

Reading prompts? Get all 500 in one free PDF

500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.

  • 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
  • Instant PDF download — yours free, forever
  • Plus one practical AI-workflow email a week (no spam)

Single opt-in · unsubscribe anytime · no spam.