v171

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-0726249111.7 MB
Logs

Get surrounding log context

Retrieve the matching log records immediately before and after an anchor log. Neighbors use the same free-text and structured filter dialect as SearchLogs and are returned in chronological order.

post/v3/logs/{id}/context

Path parameters

idstring required

Request body

fromstring date-time required
tostring date-time required
querystring
filter_operatorstring
beforeinteger

Number of matching records earlier than the anchor. Defaults to 10.

afterinteger

Number of matching records later than the anchor. Defaults to 10.

oqlstring

Optional OQL pipeline. It cannot be combined with query or filters.

Response

OK

has_more_beforeboolean required
has_more_afterboolean required