WEBVTT

1.1
00:00:00.000 --> 00:00:07.600
<v Speaker 1>Logs are where an incident timeline actually comes from, and git history is where a code change gets explained.

1.2
00:00:07.600 --> 00:00:16.400
<v Speaker 2>Both are also easy to misuse. One buries you in noise, and the other has the word "blame" in the command name.

1.3
00:00:16.400 --> 00:00:24.400
<v Speaker 1>Which is an unfortunate piece of naming, because the tool is genuinely useful and the instinct it invites is not.

1.4
00:00:24.400 --> 00:00:32.400
<v Speaker 2>So we'll cover finding signal in logs, and using history to understand a decision rather than to identify a culprit.

2.1
00:00:32.400 --> 00:00:39.200
<v Speaker 1>Logs are the storybook of every application. Each entry marks what happened and at what severity level.

2.2
00:00:39.200 --> 00:00:46.400
<v Speaker 2>Right, without them we'd be guessing whether a failure came from a bad deployment or a hardware hiccup.

2.3
00:00:46.400 --> 00:00:54.400
<v Speaker 1>Remember the checkout bug we chased for days? The logs finally showed payment timeouts minutes after a database lock warning.

2.4
00:00:54.400 --> 00:01:00.800
<v Speaker 2>Once we lined those timestamps up, the cause was obvious, and we avoided hours of finger-pointing.

2.5
00:01:00.800 --> 00:01:09.600
<v Speaker 1>That's why we dig through logs even when it's tedious. They turn hunches into hard evidence and help us spot patterns early.

2.6
00:01:09.600 --> 00:01:16.800
<v Speaker 2>We've all stared at a wall of red ERROR messages at 2 AM wondering where to even begin.

3.1
00:01:16.800 --> 00:01:22.400
<v Speaker 1>When the app is small, a quick grep for "ERROR" usually does the trick.

3.2
00:01:22.400 --> 00:01:28.400
<v Speaker 2>But how do you even know where to start looking in a 10GB log file?

3.3
00:01:28.400 --> 00:01:33.200
<v Speaker 2>Once you have several services, tools like Elastic or Splunk become essential.

3.4
00:01:33.200 --> 00:01:38.400
<v Speaker 1>They let you search structured fields and follow one request across many logs.

3.5
00:01:38.400 --> 00:01:45.600
<v Speaker 2>We tag every entry with a request ID so we can trace a user's journey end to end.

3.6
00:01:45.600 --> 00:01:52.400
<v Speaker 1>Dashboards help spot patterns too. A jump in WARN logs might reveal memory pressure before anything crashes.

3.7
00:01:52.400 --> 00:01:58.800
<v Speaker 2>Whatever tool you use, keep enough history so you can go back and learn from incidents.

4.1
00:01:58.800 --> 00:02:04.400
<v Speaker 1>`git blame` shows who last touched a line, but that alone doesn't prove responsibility.

4.2
00:02:04.400 --> 00:02:10.000
<v Speaker 2>The author may have been fixing someone else's bug or working with incomplete specs.

4.3
00:02:10.000 --> 00:02:16.800
<v Speaker 1>When we spot a risky change, we message the contributor and ask what problem they were solving.

4.4
00:02:16.800 --> 00:02:24.000
<v Speaker 1>Remember when we blamed the database for three hours before realizing it was a typo in the config?

4.5
00:02:24.000 --> 00:02:29.600
<v Speaker 2>Usually we uncover useful context, like a last-minute hotfix that forced a quick decision.

4.6
00:02:29.600 --> 00:02:36.400
<v Speaker 1>We also use options like `-w` to ignore whitespace or `-C` to track code moved between files.

4.7
00:02:36.400 --> 00:02:40.800
<v Speaker 2>Used kindly, blame provides insight without turning conversations into witch hunts.

5.1
00:02:40.800 --> 00:02:50.399
<v Speaker 1>When you do reach for blame, pair it with conversation. Say a function crashes on null inputs and the history points at one commit.

5.2
00:02:50.399 --> 00:03:01.199
<v Speaker 2>Go and ask that contributor what constraints they were working under. Often they were patching a production bug at speed, or following requirements that have since changed.

5.3
00:03:01.199 --> 00:03:11.199
<v Speaker 1>Then capture what you learn in the commit message or a design doc, so the next person meets the reasoning instead of repeating the mistake.

5.4
00:03:11.199 --> 00:03:21.999
<v Speaker 2>And if the trail exposes something systemic, unrealistic deadlines or missing reviews, take it to the retrospective. Not to a public channel, and not to the individual.

6.1
00:03:21.999 --> 00:03:28.399
<v Speaker 1>Here's a typical investigation. We start by scanning the logs for errors like "database connection timeout".

6.2
00:03:28.399 --> 00:03:34.399
<v Speaker 1>It can feel stressful when production is down, so having a checklist keeps everyone calm.

6.3
00:03:34.399 --> 00:03:39.999
<v Speaker 2>If network metrics look normal, we examine recent commits that touched the connection pool.

6.4
00:03:39.999 --> 00:03:44.799
<v Speaker 1>Running git blame on that section shows who adjusted the pool size.

6.5
00:03:44.799 --> 00:03:51.999
<v Speaker 2>Instead of blaming them, we ask what issue they were trying to solve and if it's still relevant.

6.6
00:03:51.999 --> 00:03:57.599
<v Speaker 1>Together we test new settings, update the documentation, and note everything in the ticket.

6.7
00:03:57.599 --> 00:04:03.599
<v Speaker 2>Saving those logs and discussions means the next team understands why we made each change.

7.1
00:04:03.599 --> 00:04:09.199
<v Speaker 1>Logs show what happened, and blame hints at who changed the code and why.

7.2
00:04:09.199 --> 00:04:15.599
<v Speaker 2>Used together, they help us resolve issues quickly without turning the post‑mortem into a witch hunt.

7.3
00:04:15.599 --> 00:04:19.999
<v Speaker 1>We also respect privacy, follow retention rules and document lessons learned.

7.4
00:04:19.999 --> 00:04:25.199
<v Speaker 2>That builds trust. People feel safe admitting mistakes, so the whole team improves.

7.5
00:04:25.199 --> 00:04:31.599
<v Speaker 1>The goal isn't to catch someone out; it's to make the system stronger after each incident.

7.6
00:04:31.599 --> 00:04:39.599
<v Speaker 2>Treat logs and blame as tools for insight, not weapons, and they'll guide your career as much as your code.

