Summarize log entries with Gemini assistance

This document describes how you can use Gemini Cloud Assist, a key product in the Gemini for Google Cloud portfolio, 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 log data that you want to explore.

Learn how and when Gemini for Google Cloud uses your data.

Before you begin

  1. Ensure that Gemini Cloud Assist is set up for your Google Cloud user account and project.
  2. In the Google Cloud console, on the project selector page, select your Google Cloud project.

    Go to project selector

Summarize a log entry

Logging only sends the text of a log entry to Gemini Cloud Assist, 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.

To summarize a log entry, do the following:

  1. In the Google Cloud console, go to the Logs Explorer page:

    Go to Logs Explorer

    If you use the search bar to find this page, then select the result whose subheading is Logging.

  2. Find the log entry that you want to review. To find a specific log entry, try the following:

    • Specify criteria that the log entries must match by selecting from the menus or by writing a query.
    • Adjust the time range by using the time range picker.
    • Select the projects and log views that are searched for log data.

      The projects and log views in the default log scope are automatically searched for log data. However, you can specify which projects and log views are searched.

  3. Select the log entry that you want to summarize.

  4. In the toolbar for the log entry, click Explain this log entry.

    Cloud Logging sends the text of the log entry to Gemini Cloud Assist with a prompt to summarize the contents of the log entry. Gemini Cloud Assist responds with a generated summary in the Gemini pane. The summary is based only on the text of the log entry without any additional context.

What's next