Self-Hosted Papertrail & Better Stack Alternative for Live-Tail Logs
If you only need a fast, searchable live tail in a browser—without per-GB SaaS billing or standing up Elasticsearch—Logdy is a single-binary, Apache-2.0 open-source viewer that streams logs from stdin, files, TCP sockets, or a REST API into a password-protected web UI in seconds. If you also need multi-week searchable retention, scheduled alerts, and team RBAC on your own servers, pair a dedicated log store like OpenObserve, Graylog, or a ClickHouse-backed stack instead.
Definition: A browser live-tail log viewer streams log lines over WebSockets or Server-Sent Events into a web UI so developers can filter, search, and pause output in real time—replacing
tail -fover SSH without requiring a centralized log database.
Why Teams Look for a Self-Hosted Papertrail or Better Stack Alternative
Papertrail (now part of SolarWinds Observability) and Better Stack (formerly Logtail) became developer favorites for one core workflow: opening a browser tab and watching live logs stream across services with instant search. Teams usually start looking for a self-hosted alternative for four reasons:
- No self-hosted deployment option: Better Stack is cloud-only (no self-hosted or BYOC edition), and Papertrail is a hosted SaaS.
- Data residency and privacy: Staging, healthcare, fintech, and internal tools often cannot ship raw stdout or request payloads to a third-party cloud.
- Paying for retention you rarely query: Many small teams only look at logs during active incidents or deployments, yet pay monthly per-GB ingestion and retention tiers.
- Overkill self-hosted stacks: Deploying Elasticsearch + Logstash + Kibana or Grafana + Loki + Promtail just to live-tail three services on a VPS takes more maintenance than the apps themselves.
Quick Comparison: Live-Tail & Self-Hosted Alternatives
| Tool | Architecture | Setup Time | Live Tail in Browser | Structured JSON Facets | Long-Term Search & Alerts | Best Fit |
|---|---|---|---|---|---|---|
| Logdy | Single Go binary (embedded UI) | < 1 minute | Yes (WebSocket) | Yes (auto-detected + TS middleware) | No (in-memory ring buffer + optional file rotation) | Ad-hoc debugging, small-team live tail on a VPS or local dev |
| SolarWinds Papertrail | Hosted SaaS | Minutes | Yes | Plain-text search primarily | Yes (plan-capped retention + alerts) | Teams wanting hosted syslog/app aggregation |
| Better Stack (Logtail) | Hosted SaaS (ClickHouse) | Minutes | Yes | Yes (SQL + structured fields) | Yes (uptime + alerting + retention) | Teams wanting managed observability + incident alerts |
| OpenObserve | Self-hosted Rust binary / cluster | 10–30 minutes | Yes | Yes (SQL / full-text) | Yes (S3/disk storage + alerts) | Self-hosted teams needing retention + dashboards |
| Graylog | Java + OpenSearch + MongoDB | 30–60+ minutes | Yes | Yes (pipelines) | Yes (RBAC + alerting + compliance) | Larger orgs needing centralized enterprise log management |
How to Set Up a Self-Hosted Browser Live Tail with Logdy
Logdy runs as a single binary with no database, no agent daemon, and no external runtime.
Step 1: Install Logdy
# macOS / Linux (Homebrew)
brew install logdy
# Or download the static binary directly
curl https://logdy.dev/install.sh | shStep 2: Stream One or More Services into a Password-Protected Web UI
For a single process or log file on a VPS, bind Logdy to 127.0.0.1 and protect the UI with --ui-pass (or LOGDY_UI_PASS):
# Follow multiple log files on a server
logdy follow /var/log/app/api.log /var/log/app/worker.log \
--port 8080 \
--ui-ip 127.0.0.1 \
--ui-pass "replace-with-strong-password"Put your existing reverse proxy (Caddy, Nginx, or Traefik) in front of 127.0.0.1:8080 for HTTPS, or open an SSH tunnel from your laptop so port 8080 is never exposed to the public internet:
ssh -L 8080:127.0.0.1:8080 [email protected]Then open http://127.0.0.1:8080 in your browser.
Step 3: Aggregate Multiple Streams in One Browser Tab (socket + forward)
If you want a Papertrail-style combined stream from several processes on the same host (or over SSH tunnels), start Logdy in socket mode on multiple local TCP ports:
# Terminal 1: Start Logdy listening on two TCP ports
logdy socket 8123 8124 --port 8080 --ui-pass "replace-with-strong-password"Forward any command's output into those ports with logdy forward:
# Terminal 2: Forward API logs to port 8123
tail -F /var/log/api.log | logdy forward 8123
# Terminal 3: Forward worker logs to port 8124
tail -F /var/log/worker.log | logdy forward 8124Logdy tags each line with its origin port so you can filter by service in one click using the sidebar facets.
Step 4: Send Logs Over HTTP with the REST API (Optional)
If a service or webhook cannot pipe stdout, start Logdy with --api-key (or LOGDY_API_KEY) and push JSON batches to POST /api/log:
logdy --api-key "my-secret-key" --port 8080curl -X POST http://127.0.0.1:8080/api/log \
-H "Authorization: Bearer my-secret-key" \
-H "Content-Type: application/json" \
-d '{
"source": "checkout-api",
"logs": [
{"ts": "2026-12-06T12:00:00Z", "log": {"level": "error", "msg": "payment timeout", "order_id": "ord_42"}}
]
}'Step 5: Keep a Bounded Local Copy on Disk (Optional)
By default, Logdy keeps the most recent 100,000 messages in an in-memory ring buffer (--max-message-count). To also save streamed lines to rotating disk files while you debug:
logdy socket 8123 8124 \
--append-to-file /var/log/logdy-capture.log \
--rotate-file-size 50M \
--max-message-count 200000Honest Limits: When NOT to Use Logdy
Logdy is deliberately focused on real-time interactive log browsing, not full observability. Do not replace Papertrail or Better Stack with Logdy alone if you need:
- Long-term searchable retention (7–90+ days): Logdy stores live messages in an in-memory ring buffer (default
100,000messages).--append-to-filewrites flat files for archiving, not an indexed historical search engine. - Automated alerting & on-call paging: Logdy does not send Slack, PagerDuty, or email alerts when error rates spike.
- Multi-user RBAC & audit trails:
--ui-passprovides a single shared password, not per-user accounts or SSO. - Built-in TLS termination: Logdy serves HTTP directly; put Caddy, Nginx, Tailscale, or an SSH tunnel in front of it for HTTPS.
For teams that need long-term self-hosted search and alerts, pair a storage backend (such as OpenObserve, ClickHouse, or Graylog) for retention and keep Logdy on hand for zero-friction local and SSH live tailing.
FAQ
Is Logdy a drop-in replacement for Papertrail or Better Stack?
No. Logdy replaces the live-tail browser UI part of Papertrail and Better Stack with zero infrastructure. It does not replace long-term log storage, scheduled alerts, or uptime monitoring.
How does Logdy secure the web UI on a remote server?
Logdy binds to 127.0.0.1 by default (--ui-ip) so it is not publicly reachable. You can add password authentication with --ui-pass (or LOGDY_UI_PASS) and access it over an SSH tunnel (ssh -L 8080:127.0.0.1:8080 ...), Tailscale, or an HTTPS reverse proxy.
Does Logdy send my logs to any external server?
No. All log lines stay strictly on your machine or server. Logdy includes optional anonymous CLI usage telemetry that you can disable with --no-analytics (-n), and update checks that you can disable with --no-updates (-u).
Can Logdy handle JSON logs automatically?
Yes. When incoming lines are valid JSON, Logdy detects the JSON structure and lets you turn any top-level or nested key into table columns and clickable sidebar facets. For non-JSON formats, you can write small TypeScript parsing functions directly in the browser UI.
How many log lines can Logdy keep in the browser view?
By default, Logdy's in-memory buffer holds 100,000 messages and drops the oldest entries on overflow. You can raise or lower this limit with --max-message-count <n>.
Related guides: Logdy vs frontail · Local JSON Log Viewer · Remote Host Logs Browser UI
