Database Migration Service uses Cloud Logging. You can access two log categories to acquire detailed information on events that occur with relation to your migration jobs: Database Migration Service logs, and the destination AlloyDB for PostgreSQL logs.
Database Migration Service logs
Database Migration Service for SQL Server to AlloyDB for PostgreSQL provides structured logs
for the datamigration.googleapis.com/MigrationJob
, datamigration.googleapis.com/ConnectionProfile
,
and datamigration.googleapis.com/PrivateConnection
resources.
These logs represent real-world events, such as when a migration job is created,
when Database Migration Service reads information from your source database,
or when a connection profile is edited.
Each log entry contains a jsonPayload.textMessage
field with a description to
help you better understand the event. There are different types of messages,
for example:
datamigration.googleapis.com/MigrationJob
resourceFULL DUMP read is completed for table: {SCHEMA_TABLE_NAME}
Successfully loaded {NUMBER} FULL DUMP rows into table: {SCHEMA_TABLE_NAME}
Successfully applied {NUMBER} CDC rows into table: {SCHEMA_TABLE_NAME}
Accessing data of table: {SCHEMA_TABLE_NAME} for data processing purpose
AlloyDB for PostgreSQL cluster logs
AlloyDB for PostgreSQL also provides log entries for your destination cluster. See the AlloyDB for PostgreSQL logs reference in the Cloud Logging documentation.
View and query logs
To view your logs, perform the following:
- In the Google Cloud console, go to the Migration jobs page.
- In the Jobs
tab, click the display name of the migration job
for which you want to view logs.
The migration job details page opens.
- On the migration job details page, click View logs
and perform one
of the following:
- To view migration job logs, select Migration job logs .
- To view logs for your AlloyDB for PostgreSQL destination cluster, select Destination instance logs .
The Logs Explorer page opens.
- On the Logs Explorer
page, you can use the drop-down menus
to modify the query and filter log entries. For example, to filter migration
job logs for events where Database Migration Service accessed a specific table in your
source database, you can use a query similar to the following:
resource.type = "datamigration.googleapis.com/MigrationJob" resource.labels.migration_job_id = " MIGRATION_JOB_ID " jsonPayload.textMessage: "Accessing data of table"
What's next
-
For more information on using Logs Explorer, see View logs by using Logs Explorer .
-
For a detailed reference of what fields are supported in Database Migration Service log entries, see Database Migration Service logs reference .
-
To get a complete, step-by-step migration walkthrough, see SQL Server to AlloyDB for PostgreSQL migration guide .

