Get log context
Retrieve surrounding log lines for a specific log entry
POST
Retrieve surrounding log lines for a specific log entry. Useful for understanding the context around an error or event.
Path parameters
namespace
type: string
requiredThe namespace (user or organization) the log belongs to.
Body parameters
namespace
type: string
requiredThe namespace for the log entry.
log_id
type: string
requiredThe ID of the log entry to get context for.
context_lines
type: integer
Number of lines to include before and after the target log entry.
default: 5
Previous → Tail logs
Next Get log usage →