Riassumere le voci di log con l'assistenza di Gemini
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Questo documento descrive come puoi utilizzare
Gemini Cloud Assist,
un prodotto chiave del portafoglio Gemini for Google Cloud , per riassumere una
voce di log in Cloud Logging. Quando esamini un problema, i riepiloghi voce di log
possono aiutarti a interpretare l'attività in un log.
Questa documentazione presuppone che il tuo progetto Google Cloud raccolga già
i dati di log che vuoi esplorare.
Logging invia a Gemini Cloud Assist solo il testo di una voce di log, quindi le risposte si basano solo su quel testo e non includono il contesto di altre voci di log o altre risorse nel tuo progettoGoogle Cloud .
Per riepilogare una voce di log:
Nella Google Cloud console, vai alla pagina Esplora log:
Nella barra degli strumenti della voce di log, fai clic su Spiega questa voce di log.
Cloud Logging invia il testo della voce di log a
Gemini Cloud Assist con un prompt per riassumere i
contenuti della voce di log.
Gemini Cloud Assist risponde con un riepilogo generato nel riquadro
Gemini. Il riepilogo si basa solo sul testo della voce di log senza alcun contesto aggiuntivo.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-05 UTC."],[],[],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)."]]