Skip to main content
truss model-logs [OPTIONS]
Fetches logs for a deployed model. Use this command to debug issues or monitor model behavior in production.

Options

--model-id
TEXT
required
The ID of the model to fetch logs from.
--deployment-id
TEXT
required
The ID of the deployment to fetch logs from.
--tail
Tail for ongoing logs. Streams new log entries as they arrive.
--remote
TEXT
Name of the remote in .trussrc to fetch logs from.
Example: Fetch logs for a specific deployment:
truss model-logs --model-id YOUR_MODEL_ID --deployment-id YOUR_DEPLOYMENT_ID
Stream logs in real-time:
truss model-logs --model-id YOUR_MODEL_ID --deployment-id YOUR_DEPLOYMENT_ID --tail