This document describes how you can use Duet AI, an AI-powered collaborator in Google Cloud, to summarize a log entry in Cloud Logging. When you are investigating an issue, log entry summaries can help you to interpret activity in a log.
This documentation assumes that your Google Cloud project already collects the logs that you want to explore.
Duet AI doesn't use your prompts or its responses as data to train its model. For more information, see How Duet AI in Google Cloud uses your data.
Before you begin
- Ensure that Duet AI is set up for your Google Cloud user account and project.
In the Google Cloud console, on the project selector page, select your Google Cloud project.
Summarize a log entry
Logging only sends the text of a log entry to Duet AI, so responses are based only on that text and don't include context from other log entries or other resources in your Google Cloud project. For information about how Duet AI handles data, see Data governance in Duet AI.
To summarize a log entry, do the following:
In the navigation panel of the Google Cloud console, select Logging, and then select Logs Explorer:
Find the log that you want to review.
Select the log entry that you want to summarize.
Click Explain this log entry.
Logging sends the text of the log entry to Duet AI with a prompt to summarize the contents of the log entry. Duet AI responds with a generated summary in the Duet AI pane. The summary is based only on the text of the log entry without any additional context.
- Read Duet AI in Google Cloud overview
- Learn how Duet AI uses your data.
- Learn about querying and viewing logs.