Get the logs for a training job with the provided filters.
cURL
curl --request POST \ --url https://api.baseten.co/v1/training_projects/{training_project_id}/jobs/{training_job_id}/logs \ --header "Authorization: Api-Key $BASETEN_API_KEY" \ --data '{ "start_epoch_millis": null, "end_epoch_millis": null, "direction": null, "limit": null }'
{ "logs": [ { "timestamp": "<string>", "message": "<string>", "replica": "<string>" } ] }
You must specify the scheme 'Api-Key' in the Authorization header. For example, Authorization: Api-Key <Your_Api_Key>
Authorization: Api-Key <Your_Api_Key>
A request to fetch training logs.
A response to querying logs.
Was this page helpful?