Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Dialogflow API-Anfragen und -Antworten können optional für Cloud Logging für Ihren Agent protokolliert werden.
Sie können auch die Region steuern, in der diese Logs gespeichert werden.
Cloud Logging aktivieren
Informationen zum Aktivieren oder Deaktivieren von Cloud Logging für Ihren Agent finden Sie in den Logging-Optionen in den allgemeinen Einstellungen des Agents.
Cloud-Logs aufrufen
Nachdem Sie Cloud Logging für einen Agent aktiviert haben, können Sie diese Logs mit dem Cloud Logs Explorer durchsuchen.
Ausführliche Informationen zum Logformat finden Sie unter Logeintragsstruktur.
Im Folgenden finden Sie eine unvollständige Liste von Logeintragstiteln, die von Dialogflow verwendet werden:
Dialogflow-Anfrage
Dialogflow-Antwort
Dialogflow-Anfrage zur Auftragsausführung
Dialogflow-Antwort zur Auftragsausführung
Dialogflow-Auftragsausführungsfehler
Anfrage- und Antwortlogeinträge haben das Feld textPayload im HOCON-Format (Human-Optimized Config Object Notation).
Der Inhalt dieser Nutzlast ähnelt der Struktur ähnlicher Dialogflow API-Anfragen und -Antworten wie in der Dialogflow-Referenzdokumentation definiert. Sie können einen HOCON-Parser für die Logkonvertierung in JSON verwenden.
Regionalisierung
Standardmäßig werden Dialogflow-Cloud-Logeinträge an den globalen _Default log-Bucket weitergeleitet.
Wenn Sie Anforderungen an den Datenstandort für Ihr Projekt haben, können Sie Ihre Logs an einen regionsspezifischen Log-Bucket weiterleiten.
Eine Anleitung dazu finden Sie unter Projektlogs mit Log-Buckets regionalisieren.
Tools zur Loganalyse
Looker bietet ein Tool, das bei der Analyse von Protokolldaten helfen kann:
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-09-04 (UTC)."],[[["\u003cp\u003eDialogflow API requests and responses can be optionally logged to Cloud Logging for your agent, offering a way to track and analyze interactions.\u003c/p\u003e\n"],["\u003cp\u003eCloud Logging for an agent can be enabled or disabled through the logging options in the agent's general settings.\u003c/p\u003e\n"],["\u003cp\u003eOnce enabled, these logs can be viewed and browsed using the Cloud Logs Explorer, with direct access also available in the agent's settings.\u003c/p\u003e\n"],["\u003cp\u003eDialogflow Cloud log entries are by default sent to the global _Default logs bucket, but can be rerouted to region-specific logs buckets if data residency requirements are needed.\u003c/p\u003e\n"],["\u003cp\u003eLog data can be further analyzed with tools like the Dialogflow Parser by Looker, which provides an overview and insights.\u003c/p\u003e\n"]]],[],null,["# Cloud logging\n\nDialogflow API requests and responses can optionally be logged to\n[Cloud logging](/logging/docs)\nfor your agent.\nYou can also control the\n\n[region](/dialogflow/es/docs/how/region)\n\nin which these logs are stored.\n\nEnable Cloud logging\n--------------------\n\nTo enable or disable Cloud logging for your agent,\nsee the logging options in the\n\n[agent's general settings](/dialogflow/es/docs/agents-settings#general).\n\n\nViewing Cloud logs\n------------------\n\nOnce you enable Cloud logging for an agent,\nyou can browse these logs using the\n[Cloud Logs Explorer](/logging/docs/view/logs-explorer-interface).\nYou can also access all of the logs for an agent by clicking the **Open logs** link in the [agent's general settings](/dialogflow/es/docs/agents-settings#general).\n\nLog format\n----------\n\nFor detailed information on the log format, see\n[Log entry structure](/logging/docs/api/platform-logs#structure).\n\nThe following is a partial list of log entry titles used by Dialogflow:\n\n- Dialogflow Request\n- Dialogflow Response\n- Dialogflow fulfillment request\n- Dialogflow fulfillment response\n- Dialogflow fulfillment error\n\nRequest and response log entries have a `textPayload` field in the [HOCON](https://en.wikipedia.org/wiki/HOCON) or Human-Optimized Config Object Notation format. The content of this payload resembles the structure of like-named Dialogflow API REST requests and responses as defined in [Dialogflow reference documentation](/dialogflow/es/docs/reference). You can use a HOCON parser for log conversion to JSON.\n\nRegionalization\n---------------\n\nBy default, Dialogflow Cloud log entries are routed to the\n[_Default logs bucket](/logging/docs/buckets),\nwhich is global.\nIf you have data residency requirements for your project,\nyou can route your logs to a region-specific logs bucket.\nFor instructions, see\n[regionalizing your project's logs using logs buckets](/logging/docs/regionalized-logs).\n| **Note:** When redirecting log sinks, you can use \n| `LOG_ID(\"dialogflow-runtime.googleapis.com/requests\")` for filtering Dialogflow Cloud logs.\n\nLog analysis tools\n------------------\n\nLooker provides a tool that can help with analyzing log data:\n\n- [Dialogflow Parser by Looker](https://marketplace.looker.com/marketplace/detail/dialogflow-parser) (overview of the tool)\n- [stacklogs-looker](https://github.com/GoogleCloudPlatform/dialogflow-integrations/tree/master/stacklogs-looker) (instructions for the tool)"]]