Files
coder/docs/admin/monitoring/logs.md
T
coder[bot] d91aa1bebd docs: replace may with can or might per the Vale spike review (#31878)
Replaces `may` with `can` (ability or permission) or `might`
(possibility), following
`word-choice.md#choose-words-that-have-one-meaning`. The Vale findings
spike review marked every `may` row valid.

- 247 lines in 110 files: 75 became `can` and 162 became `might`. The
rest are small rewordings, such as "may wish" becoming "might want".
- Applied the reviewer notes:
- `.style/content-guidelines.md`: "docs may be written ahead" is now
"you can write docs ahead", which also drops the passive voice.
- `admin/external-auth.md`: now "You can grant access to a subset of
repositories.", so the sentence doesn't end on a preposition.
- Also fixed a typo in `gcp-to-aws.md`: "may needed" is now "might
need".

## Left as-is

- **`admin/setup/configuration-reference.md` (7 lines):** this page is
generated from `codersdk` deployment options (`<!-- DO NOT EDIT |
GENERATED CONTENT -->`), so the fix belongs in the Go option
descriptions, followed by `make gen`.
- **Text that quotes the product:**
- `admin/monitoring/health-check.md:196` matches the derphealth message.
- The heading at `templates/troubleshooting.md:45`, the first "may" on
line 47, and the link on line 67 match the web terminal's "your
workspace may be incomplete" warning and its anchor.
- `admin/integrations/oauth2-provider/troubleshooting.md:269` quotes a
server error.

The changed files have no new findings from other rules.

---
AI-generated by Superblink on behalf of @nickvigilante.

---------

Co-authored-by: coder[bot] <137810501+coder[bot]@users.noreply.github.com>
2026-11-06 17:17:35 -05:00

2.7 KiB

title
title
Logs

All Coder services log to standard output, 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 output. 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.

Note

To disable human-readable logging, set --log-human (or CODER_LOGGING_HUMAN) to /dev/null. An empty string does not 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 are structured and configured similarly to coderd logs. Use these logs to troubleshoot and monitor the Terraform operations behind workspaces and templates.

Workspace Logs

The Coder agent 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) to see where logs are stored.

Note

Logs are truncated once they reach 5 MB in size.

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 to stream Kubernetes events to the Coder UI.

Kubernetes logs in Coder dashboard