/get_endpoint_logs/ and /get_autogroup_logs/ endpoints, respectively.
Endpoint logs relate to managing instances, and Worker Group logs relate to searching for offers to create instances from, as well as calls to create instances using the offers.
For both types of groups, there are four levels of logs with decreasing levels of detail: debug, trace, info0, and info1.
Each log level has a fixed size, and once it is full, the log is wiped and overwritten with new log messages. It is good practice to check these regularly while debugging.
POST https://run.vast.ai/get_endpoint_logs/
Inputs
- One of the following:
id(int): ID of your endpointendpoint(string): Name of your endpoint
api_key(string): The Vast API key associated with the account that controls the Endpoint.
JSON
Outputs
info0: The contents of theinfo0loginfo1: The contents of theinfo1logtrace: The contents of thetracelogdebug: The contents of thedebuglog
Example: Fetching Endpoint Logs with cURL
Curl
POST https://run.vast.ai/get_autogroup_logs/
Inputs
id(int): The ID of the Worker Groupapi_key(string): The Vast API key associated with the account that controls the Worker Group.
JSON
Outputs
info0: The contents of theinfo0loginfo1: The contents of theinfo1logtrace: The contents of thetracelogdebug: The contents of thedebuglog
Example: Fetching Worker Group Logs with cURL
Bash
In some cases
info0 may not contain logs for a Worker Group.