Each Ray process writes logs toDocumentation Index
Fetch the complete documentation index at: https://ray-preview.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
/tmp/ray/session_latest/logs/. Workers’ stdout and stderr are forwarded to the driver process by default.
Locations
dashboard.log,dashboard_agent.loggcs_server.out/gcs_server.errmonitor.out(autoscaler)raylet.out/raylet.errworker-*.out/worker-*.errserve/(Ray Serve)
Driver forwarding
Log dedup
SetRAY_DEDUP_LOGS=1 (default in newer versions) to collapse identical lines from many workers into a single line at the driver.
Per-task and per-actor loggers
.out file and are forwarded to the driver.
Aggregating across nodes
Run a log shipper (fluentbit, Vector, Datadog Agent) on each node tailing the Ray log directory. Ship to your platform’s log backend (CloudWatch, GCP Logging, Loki, ELK, Datadog).Rotation
Configure with environment variables:Sensitive data
Argument values are logged when tasks fail. Don’t pass secrets as task arguments — use environment variables, runtime envs, or external secret stores.Next steps
Profiling
py-spy and memray.
State API
Inspect the cluster programmatically.