Monitoring & Collection/Logging
POSTLoggingSince 1.0SynchronousAuth Required
QueryByTraceID
Query all log entries associated with a specific trace ID
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
traceIdStringRequiredDistributed trace identifier to query logs for
Example: abc123def456
startTimeStringRequiredRFC3339 start time for the query window
Example: 2024-01-01T00:00:00Z
endTimeStringRequiredRFC3339 end time for the query window
Example: 2024-01-01T01:00:00Z
servicesListRequiredServices for this resource
Example: item1,item2
maxResultsIntegerRequiredMaximum number of log entries to return
Example: 500
Responses
Endpoint
POST/api/v1/logging/traces/query
/api/v1/logging/traces/query
Request Example
curl -X POST '{host}/api/v1/logging/traces/query' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"traceId":"abc123def456","startTime":"2024-01-01T00:00:00Z","endTime":"2024-01-01T01:00:00Z","services":"item1,item2","maxResults":500}'
Response Example
200{
"traceId": "abc123def456",
"totalLogs": 120,
"durationMs": 3450,
"services": [
{}
],
"logs": [
{}
]
}Change History
This API has no change history records yet.
