Logs

Get surrounding log context

Changed on

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

Request

  • Base URL
    https://my.orq.ai
  • URL
    https://my.orq.ai/v3/logs/{id}/context
  • Auth
    HTTP bearer

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

Changes