Search code examples
google-cloud-platformgoogle-cloud-logging

Is it possible to display context of the search result in gcp logging


Just like grep command can show the context of matching lines with --context, --after-context and --before-context options, Can we display near by log entries in GCP Logging ?


Solution

  • Try Pin log entries. Scroll to log entry: Bring the log entry into the current Query results pane and view the pinned log entry in the context of nearby logs.