Google Cloud Stackdriver - how can I group logs by summary field?

3.6k Views Asked by At

I have a log query that shows me the booking and distribution container log. To have a more clear overview over the call flow over the different services - I'd like to group those two logs into wrapper that I can expand if necessary.

Take the screenshot as an example. I'd love to have only 2 log entries here that are grouped either by booking or distribution.

Q: Is there a way to group by "summary"?

enter image description here

1

There are 1 best solutions below

0
On

You can try to add a custom field using a line in the summary, but this only works on the Legacy log viewer. You can go there by clicking the Options button at the top of the Logs explorer page.

  1. Go to Legacy Log viewer
  2. Expand the summary
  3. Click on the line in the summary you want to group
  4. Click Add fields to summary line

See this link for the official documentation about the topic on adding custom fields in Legacy Logs Viewer.