get_allocation_logs
Retrieve recent stdout or stderr logs from a specified task in a Nomad allocation to troubleshoot issues without direct access.
Instructions
Fetch recent stdout/stderr log output for a task in an allocation.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"allocId": "<allocId>",
"task": "<task>"
},
"name": "get_allocation_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | Task name within the allocation | |
| type | No | stdout | |
| allocId | Yes | ||
| tailBytes | No |