Skip to content

Commit 300f98a

Browse files
Merge pull request #309696 from v-thpra/qmf-az-func-006
Q&M: Freshness - Azure Functions - 6
2 parents bfed76a + cb6e082 commit 300f98a

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

articles/azure-functions/streaming-logs.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: Stream execution logs in Azure Functions
2+
title: Stream Execution Logs in Azure Functions
33
description: Learn how you can stream logs for functions in near real time.
4-
ms.date: 6/16/2025
4+
ms.date: 12/17/2025
55
ms.topic: how-to
66
ms.devlang: azurecli
77
ms.custom: devx-track-azurepowershell
@@ -12,18 +12,18 @@ ms.custom: devx-track-azurepowershell
1212

1313
While developing an application, you often want to see what's being written to the logs in near real time when running in Azure.
1414

15-
There are two ways to view a stream of log files being generated by your function executions.
15+
There are two ways to view the stream of log files that your function executions generate.
1616

1717
## [Live Metrics](#tab/live-metrics)
1818

19-
When your function app is [connected to Application Insights](configure-monitoring.md#enable-application-insights-integration), you can view log data and other metrics in near real-time in the Azure portal using [Live Metrics Stream](/azure/azure-monitor/app/live-stream). Use this method when monitoring functions running on multiple-instances and supports all plan types. This method uses [sampled data](configure-monitoring.md#configure-sampling). _This is the recommended way to view streaming logs._
19+
When your function app is [connected to Application Insights](configure-monitoring.md#enable-application-insights-integration), you can use [Live Metrics Stream](/azure/azure-monitor/app/live-stream) to view log data and other metrics in near real-time in the Azure portal. Live Metrics stream is *the recommended way to view streaming logs* it supports all plan types and is the method to use when monitoring functions running on multiple-instances. It also uses [sampled data](configure-monitoring.md#configure-sampling), so it can protect you from producing too much data during times of peak loads.
2020

2121
>[!IMPORTANT]
2222
>By default, the Live Metrics stream includes logs from all apps connected to a given Application Insights instance. When you have more than one app sending log data, you should [filter your log stream data](/azure/azure-monitor/app/live-stream#filter-by-server-instance).
2323
2424
## [Built-in logs](#tab/built-in)
2525

26-
The App Service platform lets you view a stream of your application log files. This is equivalent to the output seen when you debug your functions during [local development](functions-develop-local.md) and when you use the **Test** tab in the portal. All log-based information is displayed. For more information, see [Stream logs](../app-service/troubleshoot-diagnostic-logs.md#stream-logs). This streaming method supports only a single instance, and can't be used with an app running on Linux in a Consumption plan. When your function is scaled to multiple instances, data from other instances isn't shown using this method.
26+
The App Service platform lets you view a stream of your application log files. This method is equivalent to the output seen when you debug your functions during [local development](functions-develop-local.md) and when you use the **Test** tab in the portal. All log-based information is displayed. For more information, see [Stream logs](../app-service/troubleshoot-diagnostic-logs.md#stream-logs). This streaming method supports only a single instance, and can't be used with an app running on Linux in a Consumption plan. When your function is scaled to multiple instances, data from other instances isn't shown using this method.
2727

2828
---
2929

@@ -37,7 +37,7 @@ Log streams can be viewed both in the portal and in most local development envir
3737

3838
1. In Application Insights, select **Live Metrics Stream**. [Sampled log entries](configure-monitoring.md#configure-sampling) are displayed under **Sample Telemetry**.
3939

40-
![View Live Metrics Stream in the portal](./media/functions-monitoring/live-metrics-stream.png)
40+
:::image type="content" source="./media/functions-monitoring/live-metrics-stream.png" alt-text="Screenshot showing how to view Live Metrics Stream in the portal.":::
4141

4242
## [Visual Studio Code](#tab/vs-code/live-metrics)
4343

@@ -59,11 +59,11 @@ func azure functionapp logstream <FunctionAppName> --browser
5959

6060
To view streaming logs in the portal, select the **Platform features** tab in your function app. Then, under **Monitoring**, choose **Log streaming**.
6161

62-
![Enable streaming logs in the portal](./media/functions-monitoring/enable-streaming-logs-portal.png)
62+
:::image type="content" source="./media/functions-monitoring/enable-streaming-logs-portal.png" alt-text="Screenshot showing how to enable streaming logs in the portal.":::
6363

64-
This connects your app to the log streaming service and application logs are displayed in the window. You can toggle between **Application logs** and **Web server logs**.
64+
This setting connects your app to the log streaming service and application logs are displayed in the window. You can toggle between **Application logs** and **Web server logs**.
6565

66-
![View streaming logs in the portal](./media/functions-monitoring/streaming-logs-window.png)
66+
:::image type="content" source="./media/functions-monitoring/streaming-logs-window.png" alt-text="Screenshot showing how to view streaming logs in the portal.":::
6767

6868
## [Visual Studio Code](#tab/vs-code/built-in)
6969

@@ -89,5 +89,5 @@ func azure functionapp logstream <FunctionAppName>
8989

9090
## Next steps
9191

92-
+ [Monitor Azure Functions](functions-monitoring.md)
93-
+ [Analyze Azure Functions telemetry in Application Insights](analyze-telemetry-data.md)
92+
- [Monitor Azure Functions](functions-monitoring.md)
93+
- [Analyze Azure Functions telemetry in Application Insights](analyze-telemetry-data.md)

0 commit comments

Comments
 (0)