Image 1 of 2: Nerdlog with a timeline histogram above log messages merged from several hosts
Connects to each host over SSH and runs the analysis there, downloading only histogram data and a page of messages, then merges the results into one view. Reads log files or journalctl. Hacked together in 2022 to replace slow Splunk setups.
- about 10 sIndexing a 2GB log
Trade-offs
- No central server to run. Filtering and analysis use CPU and IO on the hosts generating the logs, which matters when a host is already overloaded.
- SSH access as the requirement. That suits small teams, and where developers should not reach production hosts, logs can sync to a separate logging server.
- Log files preferred over
journalctl, which is less reliable and much slower.journalctlremains the last resort because it is more widely available.
Q&A3
An agent bash script uploaded under
/tmp. It cuts the time range with tail and head, filters with awk, and prints histogram data and the latest lines to stdout.The agent builds an index file from timestamps to line numbers and byte offsets. That took about 10 s on a 2GB log, and only has to happen once after rotation.
The two latest files in a logstream, such as
syslog and syslog.1. Older gzipped files need unpacking first, and journalctl usually has longer history.Links
Built by
Reviews
Loading reviews
More in Observability
See all 33 →
cerberusPrometheus, Loki and Tempo HTTP gateway for ClickHouse- rocketplaneIOSelf-hosted Kubernetes observability with transaction-gated agent actions
- agent-traceSession recorder and replay tool for coding agents
QueueScopeNative macOS dashboard for BullMQ queues on Redis- duckdb-otlpOpenTelemetry ingest and SQL queries in DuckDB
- ProcInShWeb-based Linux process inspector with a 3D process space
More in Terminal UI
See all 39 →- notmuttAsync terminal mail client built on notmuch, with undoable tag operations
MastuiMulti-column Mastodon client for the terminal- Localization Resource ManagerLocalization files from one binary, as a CLI, terminal UI, web UI or in VS Code
KatesPerformance, chaos and security testing for Kafka on Kubernetes
gitpaneMulti-repo Git dashboard for the terminal and the VS Code Explorer
GhostScopeSource-aware eBPF tracer for live userspace processes
More in CLI tools
See all 74 →- ZeroboxDeny-by-default process sandbox with per-host secret injection
blitcpFile copier that reads in disk order, dedupes and streams over raw SSH
jc-rsjc rewritten as one static binary that turns command output into JSON- pistachioDeclarative PostgreSQL schema management with a plan and apply workflow
quiverDump, load, copy and stream MySQL, MariaDB and TiDB from one consistent snapshot
haxMinimalist terminal coding agent written in C