简体   繁体   中英

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

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"?

在此处输入图片说明

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM