Capture context in LogQL

Ls it possible to capture context for LogQL query entries? My case is I noticed an error and want to lookup some logs before and after this error. I understand that I can craft another error which scans datetime range but curious if it’s possible to do in a single query.

Log context has been around for awhile, see the above link for examples. I just learned there’s a bug if you’re using the backtick instead of quotes to wrap your expression (to avoid having to escape special chars) though where the context links won’t show up but sounds like it’ll be fixed in 8.x.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.