[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-11。"],[],[],null,["# Summarize log entries with Gemini assistance\n\nThis document describes how you can use\n[Gemini Cloud Assist](/gemini/docs/cloud-assist/overview),\na key product in the Gemini for Google Cloud portfolio, to summarize a\nlog entry in Cloud Logging. When you are investigating an issue, log entry\nsummaries can help you to interpret activity in a log.\n\nThis documentation assumes that your Google Cloud project already\n[collects the log data](/logging/docs/agent-or-library) that you want to explore.\n\nLearn [how and when Gemini\nfor Google Cloud uses your data](/gemini/docs/discover/data-governance).\n\nBefore you begin\n----------------\n\n1. [Ensure that Gemini Cloud Assist is set up for your Google Cloud user account and project](/gemini/docs/cloud-assist/set-up-gemini).\n\n2. In the Google Cloud console, on the project selector page, select\n your Google Cloud project.\n\n [Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n\nSummarize a log entry\n---------------------\n\n| As an early-stage technology, Gemini for Google Cloud\n| products can generate output that seems plausible but is factually incorrect. We recommend that you\n| validate all output from Gemini for Google Cloud products before you use it.\n| For more information, see\n| [Gemini for Google Cloud and responsible AI](/gemini/docs/discover/responsible-ai).\n\nLogging only sends the text of a log entry to\nGemini Cloud Assist, so responses are based only on that text\nand don't include context from other log entries or other resources in your\nGoogle Cloud project.\n\nTo summarize a log entry, do the following:\n\n1. In the Google Cloud console, go to the **Logs Explorer** page:\n\n [Go to **Logs Explorer**](https://console.cloud.google.com/logs/query)\n\n \u003cbr /\u003e\n\n If you use the search bar to find this page, then select the result whose subheading is\n **Logging**.\n2. Find the log entry that you want to review. To find a specific log entry,\n try the following:\n\n - Specify criteria that the log entries must match by selecting from the menus or by writing a [query](/logging/docs/view/building-queries).\n - Adjust the time range by using the time range picker.\n - Select the projects and log views that are searched for log data.\n\n The projects and log views in the default log scope are\n automatically searched for log data. However, you can\n [specify which projects and log views are searched](/logging/docs/view/logs-explorer-interface#refine_scope).\n3. Select the log entry that you want to summarize.\n\n4. In the toolbar for the log entry, click **Explain this log entry**.\n\n Cloud Logging sends the text of the log entry to\n Gemini Cloud Assist with a prompt to summarize the\n contents of the log entry.\n Gemini Cloud Assist responds with a generated summary in the\n **Gemini** pane. The summary is based only on the\n text of the log entry without any additional context.\n\nWhat's next\n-----------\n\n- Read [Gemini Cloud Assist overview](/gemini/docs/cloud-assist/overview).\n- Learn [how and when Gemini\n for Google Cloud uses your data](/gemini/docs/discover/data-governance).\n\n- Learn about [querying and viewing log data](/logging/docs/log-analytics)."]]