Skip to content

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 -f over 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:

  1. No self-hosted deployment option: Better Stack is cloud-only (no self-hosted or BYOC edition), and Papertrail is a hosted SaaS.
  2. Data residency and privacy: Staging, healthcare, fintech, and internal tools often cannot ship raw stdout or request payloads to a third-party cloud.
  3. 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.
  4. 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 ​

ToolArchitectureSetup TimeLive Tail in BrowserStructured JSON FacetsLong-Term Search & AlertsBest Fit
LogdySingle Go binary (embedded UI)< 1 minuteYes (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 PapertrailHosted SaaSMinutesYesPlain-text search primarilyYes (plan-capped retention + alerts)Teams wanting hosted syslog/app aggregation
Better Stack (Logtail)Hosted SaaS (ClickHouse)MinutesYesYes (SQL + structured fields)Yes (uptime + alerting + retention)Teams wanting managed observability + incident alerts
OpenObserveSelf-hosted Rust binary / cluster10–30 minutesYesYes (SQL / full-text)Yes (S3/disk storage + alerts)Self-hosted teams needing retention + dashboards
GraylogJava + OpenSearch + MongoDB30–60+ minutesYesYes (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 ​

bash
# macOS / Linux (Homebrew)
brew install logdy

# Or download the static binary directly
curl https://logdy.dev/install.sh | sh

Step 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):

bash
# 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:

bash
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:

bash
# 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:

bash
# 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 8124

Logdy 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:

bash
logdy --api-key "my-secret-key" --port 8080
bash
curl -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:

bash
logdy socket 8123 8124 \
  --append-to-file /var/log/logdy-capture.log \
  --rotate-file-size 50M \
  --max-message-count 200000

Honest 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,000 messages). --append-to-file writes 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-pass provides 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