You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Learn how to use Azure Monitor Logs with Azure Functions to monitor function executions.
4
4
author: craigshoemaker
5
5
ms.topic: conceptual
6
-
ms.date: 10/09/2019
6
+
ms.date: 04/15/2020
7
7
ms.author: cshoe
8
8
# Customer intent: As a developer, I want to monitor my functions so I can know if they're running correctly.
9
9
---
@@ -21,17 +21,23 @@ Azure Monitor uses a version of the [Kusto query language](/azure/kusto/query/)
21
21
22
22
## Setting up
23
23
24
-
From the **Monitoring** section, select **Diagnostic settings** and then click**Add diagnostic setting**.
24
+
1.From the **Monitoring** section of your function app in the [Azure portal](https://portal.azure.com), select **Diagnostic settings**, and then select**Add diagnostic setting**.
25
25
26
-

In the **Diagnostics settings** page, choose**Send to Log Analytics**, and then select your Log Analytics workspace. Under **log** choose **FunctionAppLogs**, this table contains the desired logs.
28
+
1.In the **Diagnostics settings** page, under**Category details** and **log**, choose **FunctionAppLogs**.
29
29
30
-

30
+
The **FunctionAppLogs** table contains the desired logs.
31
+
32
+
1. Under **Destination details**, choose **Send to Log Analytics**.and then select your **Log Analytics workspace**.
33
+
34
+
1. Enter a **Diagnostic settings name**, and then select **Save**.
35
+
36
+
:::image type="content" source="media/functions-monitor-log-analytics/choose-table.png" alt-text="Add a diagnostic setting":::
31
37
32
38
## User-generated logs
33
39
34
-
To generate custom logs, you can use the specific logging statement depending on your language, here are sample code snippets:
40
+
To generate custom logs, use the logging statement specific to your language. Here are sample code snippets:
0 commit comments