Skip to content

Commit b388c62

Browse files
authored
Merge pull request #111573 from dksimpson/release-functions-ux-update-dks-7
Functions update for portal UX refresh - batch 7
2 parents 6c4c0f5 + 640eee6 commit b388c62

File tree

4 files changed

+26
-12
lines changed

4 files changed

+26
-12
lines changed

articles/azure-functions/functions-monitor-log-analytics.md

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Monitoring Azure Functions with Azure Monitor Logs
33
description: Learn how to use Azure Monitor Logs with Azure Functions to monitor function executions.
44
author: craigshoemaker
55
ms.topic: conceptual
6-
ms.date: 10/09/2019
6+
ms.date: 04/15/2020
77
ms.author: cshoe
88
# Customer intent: As a developer, I want to monitor my functions so I can know if they're running correctly.
99
---
@@ -21,17 +21,23 @@ Azure Monitor uses a version of the [Kusto query language](/azure/kusto/query/)
2121
2222
## Setting up
2323

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**.
2525

26-
![Add a diagnostic setting](media/functions-monitor-log-analytics/diagnostic-settings-add.png)
26+
:::image type="content" source="media/functions-monitor-log-analytics/diagnostic-settings-add.png" alt-text="Select diagnostic settings":::
2727

28-
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**.
2929

30-
![Add a diagnostic setting](media/functions-monitor-log-analytics/choose-table.png)
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":::
3137

3238
## User-generated logs
3339

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:
3541

3642

3743
# [C#](#tab/csharp)
@@ -68,11 +74,19 @@ logging.info('My app logs here.')
6874

6975
## Querying the logs
7076

71-
To query the generated logs, go to the Log Analytics workspace that you configured to send the function logs to and click **Logs**.
77+
To query the generated logs:
78+
79+
1. From your function app, select **Diagnostic settings**.
80+
81+
1. From the **Diagnostic settings** list, select the Log Analytics workspace that you configured to send the function logs to.
82+
83+
1. From the **Log Analytics workspace** page, select **Logs**.
84+
85+
Azure Functions writes all logs to the **FunctionAppLogs** table under **LogManagement**.
7286

73-
![Query window in LA workspace](media/functions-monitor-log-analytics/querying.png)
87+
:::image type="content" source="media/functions-monitor-log-analytics/querying.png" alt-text="Query window in Log Analytics workspace":::
7488

75-
Azure Functions writes all logs to **FunctionAppLogs** table, here are some sample queries.
89+
Here are some sample queries:
7690

7791
### All logs
7892

@@ -83,7 +97,7 @@ FunctionAppLogs
8397
8498
```
8599

86-
### A specific function logs
100+
### Specific function logs
87101

88102
```
89103
@@ -104,6 +118,6 @@ FunctionAppLogs
104118

105119
## Next steps
106120

107-
- Review the [Azure Functions overview](functions-overview.md)
108-
- Learn more about [Azure Monitor Logs](../azure-monitor/platform/data-platform-logs.md)
121+
- Review the [Azure Functions overview](functions-overview.md).
122+
- Learn more about [Azure Monitor Logs](../azure-monitor/platform/data-platform-logs.md).
109123
- Learn more about the [query language](../azure-monitor/log-query/get-started-queries.md).
-4.32 KB
Loading
-38.8 KB
Loading
-16 KB
Loading

0 commit comments

Comments
 (0)