GetRLLogContext
Retrieves the context of a specific exception log for a DLC job.
Operation description
Retrieves the context of a specific exception log for a DLC job.
Try it now
Test
RAM authorization
Request syntax
GET /api/v1/jobs/{JobId}/rltrace/logcontext HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| JobId |
string |
Yes |
The job ID. |
dlc5yfk7eyg95lac |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AnchorTime |
string |
Yes |
The timestamp of the anchor log line in UTC RFC3339 format with second precision. |
2026-08-05T16:36:55Z |
| AnchorMessage |
string |
No |
The text of the anchor log. The fallback path locates the log by prefix matching. This value is from Fatal[].RawMessage. |
[rank0]: torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 2.00 GiB |
| CollectTime |
string |
No |
The agent_collect_time of the anchor line as a nanosecond string. This value is from Fatal[].CollectNs. If this parameter is provided, the exact path is used. |
1785947815190122847 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| JobId |
string |
The job ID. |
dlc-20210126170216-xxxxxxxx |
| Lines |
array |
The context log lines in ascending order of time. |
|
| RLLogContextLine |
The content of a single line in the log file. |
100 |
|
| AnchorIndex |
integer |
The index of the anchor line in Lines. This value is empty if the fallback path does not match the anchor line, and Lines contains all lines in the window. |
100 |
| Mode |
string |
The log location mode, which can be agent_collect_time for the exact path or raw_time_cluster for the fallback path. |
agent_collect_time |
| Truncated |
boolean |
Indicates whether the number of raw lines in the fallback path reaches the upper limit of 5,000. |
False |
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
Examples
Success response
JSON format
{
"JobId": "dlc-20210126170216-xxxxxxxx",
"Lines": [
{
"TimestampMs": 1787293208012,
"Message": "CUDA out of memory. Tried to allocate 2.00 GiB"
}
],
"AnchorIndex": 100,
"Mode": "agent_collect_time",
"Truncated": true,
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is not valid. | |
| 500 | InternalServerError | An internal error has occurred. Try again later. | |
| 403 | OperationForbidden | You are not authorized to access the specified job. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.