Files
coder/docs/admin/monitoring/logs.md
T
Nick Vigilante 262301db05 docs(docs/admin): apply the Administration content review copy fixes (#32638)
Applies the page-level copy notes from the
[DOCS-738](https://linear.app/codercom/issue/DOCS-738) Administration
content review that still hold after the Install spine move (#29304),
and fixes the control plane terminology drift left in hand-written
Administration pages since #28960.

This is the copy-only first slice of
[DOCS-1192](https://linear.app/codercom/issue/DOCS-1192). No page moves,
so no redirects. The sidebar restructure comes in a separate PR once the
IA decisions are settled.

<details>
<summary>Status of each DOCS-738 note</summary>

| Page | Note | Status |
|---|---|---|
| `admin` | Server, control plane, and `coderd` overlap | Settled by the
"Naming Coder's components" rule in #28960. This PR fixes the drift that
has crept in since. |
| `admin` | "configuration guide" link text | Applied. The link text now
matches the page title, "Configure control plane access", which replaced
"Setup" after the review. |
| `admin` | Landing page by role, terminology list | Deferred to the
restructure PR, because the role routes depend on the new sections. |
| `admin/setup` | Configuration reference linked only from the Tip |
Applied. It's linked from the intro now, and the Tip is gone. |
| `admin/setup` | Empty Up Next | Already filled. Renamed it to "Next
steps" and fixed "Setup" used as a verb. |
| `admin/setup/telemetry` | TL;DR note | Applied. "Turn telemetry on or
off" now leads the page. |
| `admin/setup/telemetry` | "Why we collect" | Applied: "Why we collect
telemetry" and "What telemetry we collect". The old anchors still
resolve. |
| `admin/setup/telemetry` | Heading case | No change. The headings are
already sentence case, which is the current style guide rule. |
| `admin/infrastructure` | Section blurb | Gone. #29304 moved the
section to Install > Plan. |
| `admin/infrastructure/architecture` | `coderd` versus control plane |
Settled by #28960 and the glossary. |
| `admin/templates/extending-templates` | Too many subtopics | Tracked
in [DOCS-874](https://linear.app/codercom/issue/DOCS-874). |
| `admin/templates/open-in-coder` | Spacing after the intro | No change.
The page is now `templates/open-in-coder.md`, and a caption paragraph
has since been added between the video and the first heading. I haven't
checked the rendered page. |
| `admin/integrations` | "container compute" | Applied. |
| `admin/networking` | "Tailscale's open source" | Applied. The sentence
now names Coder's Tailscale fork and what it provides. |
| `admin/networking/stun` | "The below glosses over" | Applied as "The
following description simplifies NAT traversal." I didn't use
"oversimplifies" because that would say the description is wrong. |
| `admin/monitoring` | Helm chart quick start leads the page | Applied.
The page opens with Coder's monitoring capabilities and a `<children>`
list (the hand-written list was missing two child pages), followed by
the Helm chart as its own section. |

</details>

<details>
<summary>Terminology fixes</summary>

- `monitoring/health-check.md`: "Coder server logs" becomes "`coderd`
logs" (EPS01, EPS02), and "the server running Coder" becomes "the
control plane host".
- `monitoring/logs.md`,
`integrations/oauth2-provider/troubleshooting.md`,
`users/password-auth.md`: "the server" becomes `coderd` or "the control
plane".
- `networking/workspace-proxies.md`: "primary coderd" becomes "the
control plane".
- `networking/reverse-proxy-caddy.md`: a firewall comment.
- `users/organizations-best-practices.md`: backticks around the `coderd`
Terraform provider name.

Left alone: peer-sense "server" in NAT prose, the NATS, webhook, and
hook servers, and the generated `configuration-reference.md`, which
still says "Coder server" and needs a `configdocgen` change.

</details>

Checks: `make lint/emdash`, `make lint/docs-html`, and `make
lint/docs-redirects` pass. markdownlint reports 0 errors on the changed
files. Vale reports nothing new compared with `main` on the changed
files. The doc-check self-check ran in author mode. It tightened two
claims and left no blocking findings.

Refs DOCS-1192

> [!NOTE]
> This PR was generated by Coder Agents on behalf of @nickvigilante.
2026-11-30 17:58:20 +00:00

52 lines
3.1 KiB
Markdown

---
title: Logs
---
All Coder services log to standard error, which can be critical for identifying errors and monitoring Coder's deployment health.
Like any service, logs can be captured via Splunk, Datadog, Grafana Loki, or other ingestion tools.
## `coderd` Logs
By default, `coderd`, the process that runs the control plane, exports human-readable logs to standard error.
You can access these logs via `kubectl logs deployment/coder -n <coder-namespace>` on Kubernetes or `journalctl -u coder` if you deployed Coder on a host machine/VM.
- To change the log format/location, you can set [`CODER_LOGGING_HUMAN`](../../reference/cli/server/index.md#--log-human) and [`CODER_LOGGING_JSON`](../../reference/cli/server/index.md#--log-json) server config. options.
- To only display certain types of logs, use the[`CODER_LOG_FILTER`](../../reference/cli/server/index.md#-l---log-filter) server config.
Using `.*` will result in the `DEBUG` log level being used.
> [!NOTE]
> To disable human-readable logging, set `--log-human` (or `CODER_LOGGING_HUMAN`) to `/dev/null`.
> If you set no JSON or Stackdriver log location, Coder then writes no logs.
> Do not use an empty value to disable logging.
> If every log location is empty and [`--trace`](../../reference/cli/server/index.md#--trace) (`CODER_TRACE_ENABLE`) is off, `coderd` exits with `no loggers provided, use /dev/null to disable logging`.
Events such as server errors, audit logs, user activities, and single sign-on (SSO) & OpenID Connect logs are all captured in the `coderd` logs.
## `provisionerd` Logs
Logs for [external provisioners](../../install/operate/provisioners/index.md) are structured [and configured](../../reference/cli/provisioner/start.md#--log-human) similarly to `coderd` logs.
Use these logs to troubleshoot and monitor the Terraform operations behind workspaces and templates.
## Workspace Logs
The [Coder agent](../../install/plan/architecture.md#agents) inside workspaces provides useful logs around workspace-to-server and client-to-workspace connections.
For Kubernetes workspaces, these are typically the pod logs as the agent runs via the container entrypoint.
Agent logs are also stored in the workspace filesystem by default:
- macOS/Linux: `/tmp/coder-agent.log`
- Windows: Refer to the template code (for example, [azure-windows](https://github.com/coder/coder/blob/2cfadad023cb7f4f85710cff0b21ac46bdb5a845/examples/templates/azure-windows/Initialize.ps1.tftpl#L64)) to see where logs are stored.
> [!NOTE]
> The agent rotates its log file once it reaches 5&nbsp;MB and keeps up to 19 rotated files.
> For details, refer to [Trace connections](trace-connections.md#agent-logs).
Startup script logs are also stored in the temporary directory of macOS and Linux workspaces.
## Kubernetes Event Logs
Sometimes, a workspace might take a while to start or even fail to start due to underlying events on the Kubernetes cluster such as a node being out of resources or a missing image.
You can install [coder-logstream-kube](../integrations/kubernetes-logs.md) to stream Kubernetes events to the Coder UI.
![Kubernetes logs in Coder dashboard](../../images/admin/monitoring/logstream-kube.png)