Hosting Operations
Build a Deploy and Restart Timeline
You need to compare deploy activity, restarts, and rollbacks against application errors.
Command
grep -Eh 'deploy|release|restart|started|stopped|rolled back' fixtures/incidents/*.log | sort
What changed
Nothing changes. The command prints matching event lines in timestamp order.
Danger
safe
When to use it
Use when an incident may correlate with a release switch, restart, or rollback.
When not to use it
Do not use it as proof that deploy caused the incident; use it to focus the next investigation step.
Undo or recovery
No undo needed because the command is read-only.
Expected output
Timestamped deploy, release, restart, and rollback lines.
demo script
Disposable terminal steps
ls fixtures/incidents/*.loggrep -Eh 'deploy|release|restart|started|stopped|rolled back' fixtures/incidents/*.log | sort
simulated output
What it looks like
::fixture-ready::
$ ls fixtures/incidents/*.log
fixtures/incidents/app.log
fixtures/incidents/deploy.log
::exit-code::0
$ grep -Eh 'deploy|release|restart|started|stopped|rolled back' fixtures/incidents/*.log | sort
2026-06-25T13:58:00Z deploy started release=2026.06.25.2 actor=ci
2026-06-25T14:00:01Z level=INFO service=api request_id=req-100 msg=started release=2026.06.25.1
2026-06-25T14:04:44Z deploy release_switch release=2026.06.25.2
2026-06-25T14:04:44Z level=INFO service=deploy request_id=req-104 msg=release_switch release=2026.06.25.2
2026-06-25T14:05:12Z level=INFO service=system request_id=req-106 msg=worker_restarted
2026-06-25T14:05:12Z supervisor worker restarted after exit_code=137
2026-06-25T14:09:30Z deploy rolled back release=2026.06.25.1 reason=error_rate
::exit-code::0
YouTube Short
Mark deploys and restarts.
During incidents, deploys and restarts are landmarks. Pull them into one timeline before blaming the app.
LinkedIn hook
Deploys and restarts are incident landmarks.
Question: Do you put deploy and restart events next to errors during incident review?
experiments
A/B tests to run
Metric: short_click_through_rate
A: Deploys are timeline landmarks.
B: Put restarts next to errors.