---
title: "A resilient kernel log reporter"
description: "Jane Street built a kernel log shipper that keeps working when disk or network fail, so logs from the most interesting crashes still reach central storage."
url: "https://swe.quest/articles/a-resilient-kernel-log-reporter-6b71e14df313dc47"
canonical: "https://blog.janestreet.com/linux-engineering-kernel-reporter-index/"
source: "Jane Street Tech Blog"
published: "2026-10-01"
difficulty: "hard"
kind: "Case study"
reading_minutes: 6
tags: ["linux","observability","resilience","debugging","operating-systems"]
---

# A resilient kernel log reporter

A post on [Jane Street Tech Blog](https://swe.quest/sources/jane-street.md), published 2026-10-01, 6 min read, Case study. Original: [https://blog.janestreet.com/linux-engineering-kernel-reporter-index/](https://blog.janestreet.com/linux-engineering-kernel-reporter-index/)

## Summary

Jane Street built a kernel log shipper that keeps working when disk or network fail, so logs from the most interesting crashes still reach central storage. The shipper mlockall's itself into memory, reads /dev/kmsg directly instead of dmesg, and caches DNS results in a background loop. It sends each line over plain UDP to every collector, which avoids TLS certificate files on disk and imposes no backpressure. For panics with no network either, the kernel writes compressed logs to EFI-backed pstore (efi\_pstore.pstore\_disable=0, crash\_kexec\_post\_notifiers=Y), and a custom pstore parser ships them on next boot. This works around an old systemd that doesn't recognise the renamed backend. The logs let the team trace random desktop freezes to a null dereference in an Nvidia driver update.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Linux](https://swe.quest/tags/linux.md) (Infrastructure)
- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [Resilience](https://swe.quest/tags/resilience.md) (Distributed systems)
- [Debugging](https://swe.quest/tags/debugging.md) (Engineering practices)
- [Operating systems](https://swe.quest/tags/operating-systems.md) (Infrastructure)

## Prerequisites

- Linux kernel logging ([easy posts on Linux](https://swe.quest/tags/linux.md?difficulty=easy))
- kexec and crash dumps
- UDP vs TCP basics ([easy posts on Networking](https://swe.quest/tags/networking.md?difficulty=easy))

## Keywords

pstore, /dev/kmsg, kexec, systemd-pstore, EFI, mlockall, Nvidia driver

## Related posts

- [How We Export Postgres Logs to Third-Party Services](https://swe.quest/articles/how-we-export-postgres-logs-to-third-party-services-bed5372bbc749f83.md): Neon · 2025-06-24 · Medium · 4 min read · Observability, PostgreSQL, Kubernetes
  Neon exports customer Postgres logs by having Postgres write to rsyslogd alongside stderr, with rsyslogd pushing RFC 5424 syslog over TCP to an OpenTelemetry Collector that enriches and forwards them to Datadog or any OTLP-compatible platform.
- [2023-03-08 incident: A deep dive into our incident response](https://swe.quest/articles/2023-03-08-incident-a-deep-dive-into-our-incident-response-1c1581eb2c8b4a27.md): Datadog Engineering · 2023-06-01 · Medium · 17 min read · Incidents & postmortems, SRE, Kubernetes, Observability
  Datadog's March 8, 2023 global outage, triggered by an automatic systemd upgrade that broke Kubernetes nodes across isolated regions on multiple clouds, tested an incident process built on out-of-band monitoring, senior incident-commander rotations, blameless culture and a 30-minute customer update cadence.
- [How We Rebuilt Our Log Storage and Search Infrastructure for Scale](https://swe.quest/articles/how-we-rebuilt-our-log-storage-and-search-infrastructure-for-scale-ff36f77144f2ff50.md): Railway · 2022-01-20 · Medium · 3 min read · Observability, System design, Scaling, RPC & gRPC, GraphQL
  Railway replaced per-request Docker log polling (every 2 seconds, straining the Docker daemon across 500,000+ deployments) with a centralized log pipeline.
- [Detect, act, keep the evidence: node reliability across three clouds](https://swe.quest/articles/detect-act-keep-the-evidence-node-reliability-across-three-clouds-325dce2a6ee99e58.md): ClickHouse · 2026-11-19 · Medium · 14 min read · Kubernetes, SRE, Resilience, Cloud platforms, Observability
  ClickHouse Cloud owns node-failure detection and reaction itself across AWS, GCP and Azure, because many real failures leave Kubernetes nodes Ready while workloads degrade.
- [Failure is inevitable: Learning from a large outage, and building for reliability in depth at Datadog](https://swe.quest/articles/failure-is-inevitable-learning-from-a-large-outage-and-building-for-reliability-917bd748ed64f6fb.md): Datadog Engineering · 2025-10-15 · Medium · 12 min read · Resilience, Incidents & postmortems, SRE, Kubernetes, Chaos engineering
  A March 2023 unsupervised global update knocked out connectivity to 50–60% of Datadog's Kubernetes nodes, yet the platform appeared fully down because services were designed to stop rather than show partial data.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
