This page describes how to find and use Cloud Logging to view and query logs
for your Database Migration Service instance.
Database Migration Service logging reference
See the Google Cloud platform logging page for definitions of log file names, monitored resources, and payloads for
Database Migration Service.
View AlloyDB logs
Database Migration Service uses Cloud Logging. See the Cloud Logging documentation for complete information. Below is a sample query to view AlloyDB logs:
Select an existing AlloyDB project at the top of the page.
In the Query builder, add the following:
Resource: select AlloyDB Instance. In the dialog, select a location followed by selection of a cluster ID.
Log names: scroll to the AlloyDB section and select
appropriate log files for your instance. For example:
alloydb.googleapis.com/postgres.log
Severity: select a log level.
Time range: select a preset or create a custom range.
gcloud
Use the gcloud logging
command to view log entries. In the example below, replace PROJECT_ID.
The limit
flag is an optional parameter that indicates the maximum number of entries to
return.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-11 UTC."],[[["This page explains how to access and utilize Cloud Logging for monitoring your Database Migration Service instance."],["Database Migration Service integrates with Cloud Logging, allowing you to view and query logs using the Google Cloud platform."],["A sample query is provided to view AlloyDB logs within Cloud Logging, targeting specific cluster and instance IDs."],["You can view AlloyDB logs through the Logs Explorer in the Google Cloud console by selecting the AlloyDB Instance resource and specifying log files."],["The `gcloud logging read` command can be used to view log entries, with an option to limit the number of entries returned."]]],[]]