Auf dieser Seite wird beschrieben, wie Sie mit Cloud Logging Logs für Ihre Database Migration Service-Instanz aufrufen und abfragen.
Referenz zu Protokollen des Database Migration Service
Auf der Seite Google Cloud Plattform-Logging finden Sie Definitionen für Protokolldateinamen, überwachte Ressourcen und Nutzlasten für Database Migration Service.
Wählen Sie oben auf der Seite ein vorhandenes Cloud SQL-Projekt aus.
Fügen Sie im Query Builder Folgendes hinzu:
Ressource: Wählen Sie Cloud SQL-Datenbank aus. Wählen Sie im Dialogfeld eine Cloud SQL-Instanz aus.
Lognamen: Scrollen Sie zum Abschnitt "Cloud SQL" und wählen Sie die entsprechenden Logdateien für Ihre Instanz aus. Beispiel:
cloudsql.googleapis.com/postgres.log
Schweregrad: Wählen Sie eine Logebene aus.
Zeitraum: Wählen Sie eine Voreinstellung aus oder erstellen Sie einen benutzerdefinierten Zeitraum.
gcloud
Rufen Sie Logeinträge mit dem Befehl gcloud logging auf. Ersetzen Sie im folgenden Beispiel PROJECT_ID.
Das Flag limit ist ein optionaler Parameter, der die maximale Anzahl von zurückzugebenden Einträgen anzeigt.
[[["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-07-31 (UTC)."],[[["This page explains how to access and utilize Cloud Logging for monitoring and querying logs related to your Database Migration Service instances."],["Database Migration Service leverages Cloud Logging, and the Google Cloud platform logging page provides definitions for log file names, monitored resources, and payloads."],["You can view logs for your Cloud SQL instances through the Logs Explorer in the Google Cloud console by selecting your project, choosing \"Cloud SQL Database\" as the resource, selecting appropriate log files, specifying the log level, and defining a time range."],["The `gcloud logging read` command can be used to view log entries via the command line, with an option to limit the number of entries returned."]]],[]]