{
  "slug": "railway-logs-adds-http-request-logs-0fd08b5f9b2b",
  "title": "railway logs adds HTTP request logs",
  "tools": [
    "railway"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-03-18T06:26:05.000Z",
  "announced_at": "2026-03-18T06:26:05.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When debugging a Railway service, use `railway logs --http` to stream edge request logs live in a terminal; add `--lines` for historical logs, `--filter` for query filters, or `--json` for newline-delimited JSON.",
    "examples": [
      "railway logs --http --lines 50",
      "railway logs --http --filter \"@path:/api/users @httpStatus:200\"",
      "railway logs --http --json --filter \"@requestId:<request-id>\""
    ],
    "gotchas": [
      "Version: v4.32.0",
      "--http (required): Select HTTP request logs; log type flags are mutually exclusive.",
      "--lines <N>: Fetch N log lines; disables streaming.",
      "--filter <QUERY>: Filter with Railway query syntax, including `@path`, `@httpStatus`, and `@requestId`; supports AND, OR, negation, and numeric comparisons/ranges.",
      "--json: Output logs in JSON format; HTTP output is newline-delimited JSON.",
      "Live follow for HTTP logs is available from an interactive terminal."
    ]
  },
  "why_it_matters": "Inspect or stream HTTP request logs while debugging a Railway service.",
  "before": "Use the existing CLI workflow for build and deploy logs, which did not include HTTP request logs.",
  "sources": [
    "https://github.com/railwayapp/cli/releases/tag/v4.32.0",
    "https://github.com/railwayapp/cli/pull/810",
    "https://docs.railway.com/cli/logs"
  ],
  "rank": 0.99056,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave1b-20261016",
    "verdict_id": "wave1b-20261016:wave1b-20261016-ab3911f5f43c105a-2:gate",
    "evidence_hash": "ed8326dc8f58a4c11d1f762ac3bfba1b3662538f6aaad37824d6f277a253fd32"
  },
  "review": {
    "draft_hash": "c0c27f368965177e905ae2517f4948a21754ed53d96044c868c3e7baf2500000",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1b-20261016:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.99 >= 0.9; 2 needed) and Jev gave 0.80 (>= 0.6 needed)."
  }
}
