{
  "slug": "stern-templates-expose-timestamps-as-timestamp-832d6f6ee08d",
  "title": "stern templates expose timestamps as .Timestamp",
  "tools": [
    "stern"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-10-22T13:57:05.000Z",
  "announced_at": "2026-10-22T13:57:05.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When a custom template uses `--timestamps`, read the raw log from `.Message` and include `.Timestamp` separately if you want to print the timestamp.",
    "examples": [
      "stern --timestamps --template='{{.Timestamp}} {{.Message}}{{\"\\n\"}}' <pod-query>"
    ],
    "gotchas": [
      "Version: v1.35.0",
      "--timestamps: Print timestamps; without a value, the default format is used.",
      "--template: Go template used for each log message.",
      ".Message: Log message without the prepended timestamp when `--timestamps` is used.",
      ".Timestamp: Timestamp string; empty unless `--timestamps` is set.",
      "The built-in `default` and `raw` templates have unchanged output."
    ]
  },
  "why_it_matters": "When parsing JSON in custom templates while including timestamps, read the log message without a prepended timestamp and print the timestamp separately.",
  "before": "With `--timestamps`, `.Message` included the timestamp; a custom template could print `.Message` directly to include it.",
  "sources": [
    "https://github.com/stern/stern/releases/tag/v1.35.0",
    "https://github.com/stern/stern/blob/master/README.md"
  ],
  "rank": 0.90023,
  "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": "daily-20261026-04",
    "verdict_id": "daily-20261026-04:daily-20261026-04-2bb809857702a5f4-4:gate",
    "evidence_hash": "92cc09ae9359c40e6295011164e5381205668838a445e5960e6992f5509942ca"
  },
  "review": {
    "draft_hash": "3057f0b19bdcad09da071616e5196c0bf3c6f3b51ed470ae154f573018daa632",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-22T13:57:05.000Z",
    "decision": "daily-20261026-04:gate",
    "reason": "2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.90 >= 0.9; 2 needed) and Jev gave 0.66 (>= 0.6 needed)."
  }
}
