log-link

module
v0.0.0-...-d28ccb4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2026 License: GPL-3.0

README ΒΆ

Stop grep-ing for UUIDs. Start seeing the full picture.

LogLink is a high-performance, terminal-native log aggregator designed for the distributed systems era. It doesn't just collect logs; it correlates them across services, syncs them with system metrics, and clusters failure patterns automatically.

"LogLink is what happens when you give tail -f a brain and a heartbeat."


⚑️ 30-second Quickstart: Speedrun edition

The best way to understand LogLink is to see it in action. No configuration required:

# Install and run the interactive demo in one go (Linux/macOS)
curl -fsSL https://raw.githubusercontent.com/alehhu/log-link/master/scripts/install.sh | sh
loglink --demo --incident-mode

This launches a simulated environment with API, DB, and Worker logs, overlays live CPU/Memory metrics, and clusters recurring errors.


Distributed debugging usually means having 5 terminal tabs open, manually matching UUIDs, and guessing if a CPU spike caused that timeout. LogLink solves this.

πŸ”— Causal Correlation

LogLink automatically detects UUIDs, Request IDs, and IPs. Select one, and it highlights the entire flow across every log source simultaneously. Filter the noise with one keypress (s).

πŸ“ˆ Pulse Metrics (The Heartbeat)

Overlay live system metrics (CPU, Mem, or custom API stats) as a sparkline. Temporal Scrubbing allows you to move the cursor through the logs and see exactly what the metrics were at that millisecond.

🚨 Automatic Incident Clustering

Stop chasing individual error lines. LogLink clusters similar failure signatures into "Incidents," allowing you to see the top recurring issues at a glance in the persistent leaderboard at the bottom of the screen.


πŸ›  Features

  • πŸ”Œ Native Integrations: One-command streaming for Docker, Kubernetes, systemd, and GitHub Actions.
  • ⌨️ Keyboard-First: Built with Bubble Tea. Blistering fast navigation and filtering.
  • πŸ“¦ Session Exports: Wrap up a debugging session by exporting a JSON or TXT summary of all detected incidentsβ€”perfect for postmortems.
  • πŸš€ Zero-Dependency Binary: Single Go binary. No heavy JVM, no complex config.

πŸ”¬ Deep Dive: Simulation Suite

LogLink includes a full simulation environment in the test/ directory to help you explore its power without touching your production logs.

  • Correlated Flows: See how request_id flows through api.log β†’ db.log β†’ worker.log.
  • Failure Modes: Simulated "connection pool exhausted" and "middleware panics" to test clustering.
  • Metrics: A noisy sine-wave metric server to practice temporal scrubbing.
python3 test/simulator.py
# Then in another terminal:
loglink api.log db.log worker.log --pulse "curl -fsS http://localhost:8080/load" --incident-mode

⌨️ Essential Keybindings

Key Action
f Toggle Follow (auto-scroll)
gg / G Jump to Top / Jump to Latest
u / d Page Up / Page Down
Enter Highlight ID under cursor across all files
s Focus (filter) only on the ID under cursor
Tab Pulse Focus (start scrubbing through time)
h / l Move pulse cursor (and log view) back/forward
d Toggle Details Modal (Incidents & Raw JSON)
v Open file:line in your $EDITOR
? Show full interactive help

πŸ“¦ Installation & Setup

Quick Install (macOS/Linux)
curl -fsSL https://raw.githubusercontent.com/alehhu/log-link/master/scripts/install.sh | sh
From Source
git clone https://github.com/alehhu/log-link
cd log-link
go build -o loglink ./cmd/loglink

πŸ—‘ Uninstall

curl -fsSL https://raw.githubusercontent.com/alehhu/log-link/master/scripts/uninstall.sh | sh

πŸ“š Documentation


πŸ“œ License

GNU GPL v3.0 © 2026 Alessandro Hu. Built with ❀️ and Bubble Tea.

Directories ΒΆ

Path Synopsis
cmd
loglink command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL