Skip to content

Commit 262cff7

Browse files
authored
Merge pull request #102915 from spelluru/ehubdotnet0130
new article for diagnostic logs
2 parents 70d596d + 1721fb3 commit 262cff7

File tree

9 files changed

+56
-1
lines changed

9 files changed

+56
-1
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
title: Azure Event Grid - Enable diagnostic logs for a topic
3+
description: This article provides step-by-step instructions on how to enable diagnostic logs for an Azure event grid topic.
4+
services: event-grid
5+
author: spelluru
6+
7+
ms.service: event-grid
8+
ms.topic: how-to
9+
ms.date: 01/30/2020
10+
ms.author: spelluru
11+
---
12+
13+
# Diagnostic logs for an Azure event grid topic
14+
Diagnostic settings allow Event Grid users to capture and view publish and delivery failure Logs in one of the following places: an Azure storage account, an event hub, or a Log Analytics workspace. This article provides step-by-step instructions to enable diagnostic logs for an event grid topic.
15+
16+
## Prerequisites
17+
18+
- A provisioned event grid topic
19+
- A provisioned destination for capturing diagnostic logs. It can one of the following destinations:
20+
- Azure storage account
21+
- Event hub
22+
- Log Analytics workspace
23+
24+
25+
## Steps for enabling diagnostic logs for a topic
26+
27+
1. Sign in to the [Azure portal](https://portal.azure.com).
28+
2. Navigate to the event grid topic for which you want to enable diagnostic log settings.
29+
3. Select **Diagnostic settings** under **Monitoring** in the left menu.
30+
4. On the **Diagnostic settings** page, select **Add New Diagnostic Setting**.
31+
32+
![Add diagnostic setting button](./media/enable-diagnostic-logs-topic/diagnostic-settings-add.png)
33+
5. Specify a **name** for the diagnostic setting.
34+
35+
![Diagnostic settings - name](./media/enable-diagnostic-logs-topic/diagnostic-settings-name.png)
36+
6. Enable one or more of the capture destinations for the logs, and then configure them by selecting a previous created capture resource.
37+
- If you select **Archive to a storage account**, select **Storage account - Configure**, and then select the storage account in your Azure subscription.
38+
39+
![Archive to an Azure storage account](./media/enable-diagnostic-logs-topic/archive-stroage.png)
40+
- If you select **Stream to an event hub**, select **Event hub - Configure**, and then select the Event Hubs namespace, event hub, and the access policy.
41+
![Stream to an event hub](./media/enable-diagnostic-logs-topic/archive-event-hub.png)
42+
- If you select **Send to Log Analytics**, select the Log Analytics workspace.
43+
![Send to Log Analytics](./media/enable-diagnostic-logs-topic/send-log-analytics.png)
44+
7. Select the **DeliveryFailures** and **PublishFailures** options in the **Log** section.
45+
![Select the failures](./media/enable-diagnostic-logs-topic/log-failures.png)
46+
8. Select **Save**. Select **X** in the right-corner to close the page.
47+
9. Now, back on the **Diagnostic settings** page, confirm that you see a new entry in the **Diagnostics Settings** table.
48+
![Diagnostic setting in the list](./media/enable-diagnostic-logs-topic/diagnostic-setting-list.png)
49+
50+
You can also enable collection of all metrics for the topic.
51+
52+
## Next steps
53+
If you need more help, post your issue in the [Stack Overflow forum](https://stackoverflow.com/questions/tagged/azure-eventgrid) or open a [support ticket](https://azure.microsoft.com/support/options/).
52.6 KB
Loading
58.7 KB
Loading
65.5 KB
Loading
63.9 KB
Loading
30.1 KB
Loading
37 KB
Loading
37.1 KB
Loading

articles/event-grid/toc.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@
137137
- name: Implement client-side failover
138138
href: custom-disaster-recovery.md
139139
- name: Troubleshoot errors
140-
href: troubleshoot-errors.md
140+
href: troubleshoot-errors.md
141+
- name: Enable diagnostic logs for a topic
142+
href: enable-diagnostic-logs-topic.md
141143
- name: Reference
142144
items:
143145
- name: Azure CLI

0 commit comments

Comments
 (0)