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: To fetch logs for a specific deployment, use the following:
truss model-logs --model-id YOUR_MODEL_ID --deployment-id YOUR_DEPLOYMENT_ID
To stream logs in real-time, use the following:
truss model-logs --model-id YOUR_MODEL_ID --deployment-id YOUR_DEPLOYMENT_ID --tail