/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.
Using the CLI
You can use the vastai CLI to quickly check endpoint and worker group logs at different log levels.Endpoint logs
CLI Command
Workergroup logs
CLI Command
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.tail(int): The number of bytes from the end of each log file that will be sent in the response.- If the file size is less than or equal to tail, then the whole file will be returned.
- A value of -1 will return the whole file.
JSON
Outputs
If tail has a value of 1000JSON
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.tail(int): The number of bytes from the end of each log file that will be sent in the response.- If the file size is less than or equal to tail, then the whole file will be returned.
- A value of -1 will return the whole file.
JSON
Outputs
If the value of tail is 1000JSON
Example: Fetching Worker Group Logs with cURL
Bash