Context around
context_aroundRetrieve log messages within ±N seconds of a given message to inspect surrounding events and troubleshoot issues.
Instructions
Messages logged within ±N seconds of a given message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | 'index/message_id' of the anchor message | |
| limit | No | Max messages (split before/after) | |
| query | No | Extra Lucene filter inside the window | |
| scope | No | 'source' (same host/app, default), 'stream' (same streams) or 'all' | source |
| seconds | No | Window before and after the message | |
| instance | No | Graylog instance (environment) from list_instances, e.g. 'staging' or 'prod'; the default instance when omitted |