Skip to main content

Overview

Railway log drains forward your service logs to Squasher over HTTP. Squasher filters for errors using severity levels and message heuristics, groups them, and runs AI triage.

Setup

1

Get your drain URL

Find your project ID in the Squasher dashboard under Settings > General.Your drain URL is:
https://ingest.squasher.ai/v1/drain/railway/{your_project_id}
2

Add the drain in Railway

  1. Go to your Railway project Settings
  2. Navigate to Observability > Log Drains
  3. Click Add Drain
  4. Select HTTP as the type
  5. Enter your drain URL
  6. Click Create
3

Verify

Trigger an error in your Railway service. It should appear in your Squasher dashboard within seconds.

Error Detection

Squasher identifies errors from Railway logs using two strategies: Severity-based: Entries with severity set to error, fatal, critical, or err (case-insensitive). Message heuristic: If no severity is present, Squasher checks the message for keywords: error, panic, fatal, exception, unhandled.

Log Entry Fields

FieldDescription
messageLog content
severityLog level (info, warn, error, fatal)
serviceNameRailway service name
environmentNameRailway environment (production, staging)
deploymentIdRailway deployment ID
timestampISO 8601 timestamp

Multiple Services

If you have multiple Railway services in a project, you can either:
  1. One Squasher project per service — separate dashboards, separate alert rules
  2. One Squasher project for all — all errors in one view, filter by serviceName tag