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
Get your drain URL
Find your project ID in the Squasher dashboard under Settings > General.Your drain URL is:
Add the drain in Railway
- Go to your Railway project Settings
- Navigate to Observability > Log Drains
- Click Add Drain
- Select HTTP as the type
- Enter your drain URL
- Click Create
Error Detection
Squasher identifies errors from Railway logs using two strategies: Severity-based: Entries withseverity 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
| Field | Description |
|---|---|
message | Log content |
severity | Log level (info, warn, error, fatal) |
serviceName | Railway service name |
environmentName | Railway environment (production, staging) |
deploymentId | Railway deployment ID |
timestamp | ISO 8601 timestamp |
Multiple Services
If you have multiple Railway services in a project, you can either:- One Squasher project per service — separate dashboards, separate alert rules
- One Squasher project for all — all errors in one view, filter by
serviceNametag