{
  "slug": "netlify-logs-adds-the-server-log-source-af21f9d58f6b",
  "title": "netlify logs adds the server log source",
  "tools": [
    "netlify"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-10-27T16:46:29.000Z",
  "announced_at": "2026-10-27T16:46:29.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When debugging an application, read Netlify Server logs with `netlify logs --source server`; limit history with `--since 30m` or stream new lines with `--follow`.",
    "examples": [
      "netlify logs --source server --since 30m",
      "netlify logs --follow --source server"
    ],
    "gotchas": [
      "Version: 27.15.0",
      "Non-interactive: `--json` outputs logs as JSON Lines.",
      "--source: Log sources; defaults to functions and edge-functions.",
      "--since: Historical window start; accepts duration or ISO 8601; defaults to 10m.",
      "--follow: Stream logs instead of showing historical logs.",
      "--json: Output logs as JSON Lines.",
      "`--deploy-id` and `--url` are rejected with `--source server`, because server logs are not tied to a deploy.",
      "History paging stops 10,500 lines back; when that cuts the window short, the command warns on stderr, including with `--json`.",
      "`--follow` polls every 2 seconds with a 10-second look-back and prints only lines it has not printed yet. It stops on a 401, 403, or 404; it reports other failures without stopping."
    ]
  },
  "why_it_matters": "Inspect Netlify Server logs while debugging an application.",
  "before": "`netlify logs` had no way to read Netlify Server logs.",
  "sources": [
    "https://github.com/netlify/cli/releases/tag/v27.15.0",
    "https://github.com/netlify/cli/pull/8829",
    "https://github.com/netlify/cli/blob/v27.15.0/docs/commands/logs.md"
  ],
  "rank": 0.98042,
  "review_state": "approved",
  "provenance": {
    "run_id": "daily-20261027-20",
    "verdict_id": "daily-20261027-20:daily-20261027-20-fd5c311959342200-0:gate",
    "evidence_hash": "caf0203fef0a7159caaa54a9b0ed44ee6e4b351a0b62b59d07898fcdde09a44e"
  }
}
