Project: YugabyteDB (App Definition and Development / Database)
File: diagnostics-report.md

title: YB Voyager diagnostics reporting linkTitle: Diagnostics reporting description: Sending diagnostics information to Yugabyte. menu: preview_yugabyte-voyager: identifier: diagnostics-report parent: yugabytedb-voyager weight: 104 type: docs By default, YugabyteDB Voyager reports migration diagnostics to the Yugabyte diagnostics service when yb-voyager commands are executed. The diagnostics information is transmitted securely to and stored by Yugabyte. None of your data or personally identifiable information is collected. When enabled, the following data is collected while running yb-voyager: Migration unique ID Start Time YB Voyager Version (yb-voyager version used for the migration) SourceDB Type (source type of migration) SourceDB Version (source db version used in migration) Issues (issues reported by analyze-schema without the SQL statements) Database Objects (Objects migrated in the migration) TargetDB Version (Target YugabyteDB version) Total Rows (total number of rows of all tables migrated) Total Size (total number of size of all tables migrated) Largest Table Rows (maximum number of rows migrated for a table) Largest Table Size (maximum size of data migrated for a table) The following is an example of a payload that is collected: ```output { "UUID": "ba4786e8-5923-11ee-8621-06e7faf40beb", "start_time": "2023-12-14 12:21:53", "ybvoyagerversion": "1.6.1", "lastupdatedtime": "2023-12-14 12:29:49", "sourcedbtype": "oracle", "sourcedbversion": "Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production", "issues": "[ { "objectType": "TABLE", "objectName": "sales_data", "reason": "insufficient columns in the PRIMARY KEY constraint definition in CREATE TABLE", "filePath": "/home/centos/export-dir/schema/tables/table.sql", "suggestion": "Add all Partition columns to Primary Key", "GH": "<https://github.com/yugabyte/yb-voyager/issues/578>" } ]", "database_objects": "[ { "objectType": "TABLE", "totalCount": 40, "invalidCount": 0, "objectNames": "orderitems, foo, abcdef, chartypes, intervaltypes, \"limit\", tradesymbolpricehistoric, test, accounts, customers, datetimetypes, largetable, logminingflush, orders, reservedcolumn, t1, c, \"group\", pqr, testcase, testt, \"check\", longtype, rawtype, tt, varraytable, casesensitive, casesensitivecolumn, chkk, identitydemo, lobtypes, salesdata, somemetatable, tradesymbolpricehistoric1, abc, numberps, numerictypes, sample2, t, inventories", "details": "" }, { "objectType": "INDEX", "totalCount": 4, "invalidCount": 0, "objectNames": "inventorieswarehouseidproductid, orderitemsorderidproductid, pqrabcid, pqrc2_c3", "details": "" }, { "objectType": "MVIEW", "totalCount": 2, "invalidCount": 0, "objectNames": "warrantyorders, mywarranty_orders", "details": "" } ]", "targetdbversion": "11.2-YB-{{< yb-version version="preview">}}-b0", "total_rows": 11927, "total_size": 225422, "largesttablerows": 11907, "largesttablesize": 224568, } ``` To control whether to send diagnostics to Yugabyte, you can use the `--send-diagnostics` flag or export an environment variable. Set the flag as follows: ```sh yb-voyager ... --send-diagnostics [true|false|yes|no|1|0] ``` The default is true. Alternatively, you can use the following environment variable to set a value for this flag globally on the client machine where yb-voyager is running. ```sh export YBVOYAGERSEND_DIAGNOSTICS=[true|false|yes|no|1|0] ```