Notes · How it works

Why Retrospective searches logs where they are written

November 2026 · 3 min read

When we started Retrospective in 2011, the projects we worked in had no central log platform: no SIEM, no telemetry, no Grafana. To see what happened across a dozen servers, someone had to log in to each one and read its files. Retrospective did that for us. It connects over SSH, searches on the host, brings back the matching lines, and merges them into one table sorted by time.

Then the platforms arrived in our projects: Splunk, Loggly, the ELK stack and many more. We thought that was it for Retrospective. It wasn't. People kept using it, and kept buying it. There seems to be a place for searching logs ad hoc, where they are.

One project made that clear. Batch jobs on many servers produced faulty data, the log levels were raised, and the logs became simply too big to ingest into the customer's SIEM. We could still search them, because Retrospective doesn't read what it doesn't need. Files whose last change is older than the time range are skipped, and in a large file only the part that covers the time range is read. That optimisation was born on this project.

Server app.log.3.gz app.log.2.gz app.log.1 older than the time range: not read app.log only the hour you asked for Your computer matching lines, indexed in H2
The search runs on the server. Old files are skipped, the large file is read only where the time range is, and only the matches travel.

Most cases are smaller. A few microservices in a local test setup, talking to SSH servers, none of it in Splunk. A migration project whose logs were never fed into the SIEM. A firewall or a server you look after, where you just want to search what is there.

It has a price. Every search reads the files again, and the hosts do that work. What matches travels to your computer and goes into a local H2 database, where it is indexed so you can sort and filter quickly. With a few gigabytes of results, that takes a moment. So Retrospective does index, but only what you asked for, and only on your computer. Hardware has helped here: a good laptop today has more memory and faster disks than many a log server had in 2011.

If you search the same logs every day, or need months of history or alerts, a log platform is the better choice. Most teams have both.

What agents will change here, we don't know yet. Maybe an agent that can't wait for a SIEM to finish indexing will ask the hosts itself. Maybe agents will watch Kubernetes logs as they are written. We're thinking about it.

In the manual: how the processing engine searches, and preparing hosts.

All notes