Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Dokumen ini memberikan beberapa tips pemecahan masalah umum untuk
topik impor Azure Event Hubs.
Setelah mengonfigurasi topik impor dan mulai menyerap pesan, Anda dapat memeriksa metrik Cloud Monitoring yang relevan untuk melihat apakah data diserap. Lakukan langkah-langkah berikut:
Anda juga dapat mengaktifkan log platform untuk
topik impor. Log ini membantu Anda memecahkan masalah saat Anda mengalami masalah saat menyerap objek ke dalam topik impor Pub/Sub.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-04 UTC."],[],[],null,["This document provides some common troubleshooting tips for\nAzure Event Hubs import topics.\n\nAfter you configure the import topic and start ingesting messages, you can\ncheck the relevant Cloud Monitoring metrics to see\nif data is ingested. Perform the following steps:\n\n1. In the console, go to the **Topics** page.\n\n [Go to Topics](https://console.cloud.google.com/cloudpubsub/topic/list)\n2. Click the Azure Event Hubs import topic that you want to troubleshoot.\n\n3. In the topic details page, click the **Metrics** tab.\n\n4. Check the chart for the metric **Ingestion byte count**.\n\n5. If no data is being ingested, in the topic details page,\n check to see if there is an error for the\n **Topic state** field.\n\n6. You can also check the metric **Ingestion data source state** .\n To do so, in the topic details page, click the **Metrics** tab.\n\n7. Here is a list of errors that you might encounter:\n\n | Error Code | Description | Fix |\n |--------------------------------|----------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n | `EVENT_HUBS_PERMISSION_DENIED` | Error consuming data from Azure Event Hubs due to permission issues. | Verify the roles assigned to the registered Azure app[and ensure the necessary permissions are granted](/pubsub/docs/create-azure-event-hub-import-topic#grant_role_assignments). |\n | `EVENT_HUBS_PERMISSION_DENIED` | Error consuming data from Azure Event Hubs due to permission issues. | Ensure that a service account exists and that it is correctly configured as described in the procedure [Create an App registration with identity federation.](/pubsub/docs/create-azure-event-hub-import-topic#create_id) For more information about how to create a service account, see [Create a service account in Google Cloud.](/pubsub/docs/create-azure-event-hub-import-topic#create-service-account) |\n | `EVENT_HUBS_PERMISSION_DENIED` | Error consuming data from Azure Event Hubs due to permission issues. | Verify that the Pub/Sub service account has the `iam.serviceAccounts.getOpenIdToken` permission. For more information, see [Add the Service Account Token Creator role to the Pub/Sub service account.](/pubsub/docs/create-azure-event-hub-import-topic#add-service-account-token-creator) |\n | `EVENT_HUBS_PERMISSION_DENIED` | Error consuming data from Azure Event Hubs due to permission issues. | Verify that you have added the service account user role to the service account. For more information, see [Add the service account user role to the service account.](/pubsub/docs/create-azure-event-hub-import-topic#add-service-account-role) |\n | `PUBLISH_PERMISSION_DENIED` | Error publishing to the topic due to permission issues. | Grant the Pub/Sub service account the [necessary publish permissions](/pubsub/docs/access-control#pubsub.publisher). For more information, see [Add the Pub/Sub publisher role to the Pub/Sub service account.](/pubsub/docs/create-azure-event-hub-import-topic#add-publisher-role) |\n | `EVENT_HUB_NOT_FOUND ` | The provided Azure event hub couldn't be found. | Verify the Azure event hub for accuracy. Ensure that the Azure event hub exists and is accessible. |\n | `SUBSCRIPTION_NOT_FOUND ` | The provided Azure Event Hubs subscription couldn't be found. | Verify the subscription for accuracy. Ensure that the subscription exists. |\n | `RESOURCE_GROUP_NOT_FOUND ` | The provided Azure Event Hubs resource group couldn't be found. | Verify the resource group for accuracy. Ensure that the resource group exists within the specified subscription. |\n\nIf there are no errors till this point, check the best practices in\n[Maintain a healthy publisher](/pubsub/docs/monitoring#keeping_publishers_healthy).\n\nYou can also enable [platform logs](/pubsub/docs/platform-logs-pubsub) for a\nimport topic. These logs help you troubleshoot issues\nwhen you have issues ingesting objects into Pub/Sub import topics."]]