Filters
How to search
  • Plain words find names, texts and examples.
  • "two words" finds the exact phrase.
  • --name or -x finds an option.
  • #word looks only inside commands.
  • @grep finds lessons and labs that use grep.
  • Filters: cat:network · in:labs · in:notes · level:rhcsa · ch:8 · root:yes. Put ! before a word to leave it out. OR between words means one of them.
  • ↑ ↓ to move · Enter to open · Esc to close · / to search

Documentation & knowledgeMixed 22 series

Turning an incident into a runbook

An incident produces two things worth keeping: a timeline and a set of commands that worked. A runbook is what survives when the timeline is thrown away.

Quick reference

Nine moves: capture the night, distil the steps, test the page.

Capture: While it is still fresh

  • Keep the timeline — Timestamps, decisions and evidence, not adjectives.
  • Copy the commands — Exact arguments, and what they printed back.
  • Name each decision — Who chose failover, rollback or wait, and why.

Distil: Turn the night into steps

  • Cut the story — A runbook is steps, not a narrative of the night.
  • Split by symptom — One page per failure you can spot on a dashboard.
  • Check before touching — Confirm the cause before anything in prod changes.

Test: Prove it before the next alert

  • Dry run on staging — Someone who was not on call follows it, timed.
  • Time the recovery — From alert to service back, written on the page.
  • Date it and name it — Review quarterly, or when the service changes.

In one line: A runbook is a rehearsal. Written after the incident, tested before the next one.

Rehearse one step:

kubectl rollout undo deploy/api -n prod

Explained

Capture, while it is fresh. Timestamps and decisions, not adjectives. The exact commands, with arguments, and what they printed. Who chose to fail over, roll back or wait, and on what evidence.

Distil. A runbook is steps, not a story. Split by symptom, because the person reading it has an alert, not a diagnosis. Every page starts with the check that confirms the cause, so nobody restarts production on a hunch.

Test. Someone who was not on call follows it on staging, with the clock running. Where they hesitate, the page is wrong. Then it gets an owner and a review date, because a runbook nobody reviews is a rumour with formatting.

The honest caveat: not every incident deserves a runbook. A one-off failure with no repeatable trigger is a postmortem action, and writing a procedure anyway trains people to ignore the folder.

The lesson: nine moves, one page, tested by somebody else.

Your turn: Which step would your last incident have skipped?

More notes: Documentation & knowledge

Open in the notes app: search, filters, copy This note on GitHub