Fetch and stream logs
Pull logs to debug an incident, grep for an error, or pipe context into an agent. Fetch a time window (up to 7 days back):- UI
- Baseten CLI
- REST API
To view logs:
- Sign in to your workspace at app.baseten.co and choose Dedicated Inference in the sidebar.
- Select your model.
- Select the deployment under Deployments.
- Choose Logs.
logs
and the logs endpoint
(beta).
Fetch metrics
Pull metrics to check a deployment’s health from a script: replica count, request volume, and end-to-end latency quantiles.- UI
- Baseten CLI
- REST API
To view metrics:
- Sign in to your workspace at app.baseten.co and choose Dedicated Inference in the sidebar.
- Select your model.
- Select the deployment under Deployments.
- Choose Metrics.
metrics
and the metrics endpoint
(beta). For what each metric means, see
Metrics.
Fetch environment logs and metrics
Deployment scope answers “what is this specific deployment doing?” Environment scope answers “what is production doing right now?”, which is usually the more useful operational question. An environment spans every deployment that has served it, so environment logs and metrics stay continuous across promotions: during and after a rollout, one view covers the outgoing and incoming deployments. Fetch them from any surface:- UI
- Baseten CLI
- REST API
To view an environment’s logs and metrics:
- Sign in to your workspace at app.baseten.co and choose Dedicated Inference in the sidebar.
- Select your model.
- On the model overview, choose Logs or View metrics for the environment.
environment logs and
environment metrics,
and the
environment logs
and environment metrics
(beta) endpoints.
Next steps
Logs and metrics are the read half of every management workflow: check them before and after a mutation.- Terminate a stuck replica you found misbehaving in the logs.
- Scale a deployment if metrics show sustained queueing or idle replicas.
- Metrics for dashboards and metric definitions.