如何从一个窗口监视多个App Service应用程序特定日志. [英] How to monitor multiple App Service application specific logs from one windows.

查看:102
本文介绍了如何从一个窗口监视多个App Service应用程序特定日志.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

示例:

假设n个App Service在不同的地理位置运行.

Suppose there are n App Service running in different geographical locations. 

App Service 1生成名称为"App1_file.log"的日志
App Service 2生成名称为"App2_file.log"的日志

App Service 1 generate log with a name "App1_file.log"
App Service 2 generate log with a name "App2_file.log"
.

.

应用服务n生成名称为"Appn_file.log"的日志

现在,我想从一个窗口监视所有日志,即App1_file.log,App2_file.log,... Appn_file.log.

App Service n generate log with a name "Appn_file.log"

Now I want want to monitor all logs i.e., App1_file.log,App2_file.log, ... Appn_file.log from one windows.

推荐答案

您可以利用Application Insights将所有信息收集到一个地方.

You could leverage Application Insights to gather all the information in one place.

请参阅文档 使用Application Insights诊断Web应用程序中的异常以获取更多信息.

Kindly refer the document Diagnose exceptions in your web apps with Application Insights for more information.

取决于您使用的应用程序堆栈,可以从应用程序运行时写入Azure Blob,这样,您可以写入所有日志 到Azure存储帐户中的各个Blob,然后使用Azure Storage Explorer在一个位置查看所有文件.

Depending on the application stack you are using, it is also possible to write to an Azure Blob from the application runtime, this way, you could write all the logs to various blobs in an Azure Storage account and then see all the files in one place using Azure Storage Explorer.

类似地,您还可以使用以下命令写入Azure文件存储其SDK,然后使用Azure文件存储SMB映射在Windows中将日志作为本地文件查看.

Similarly, you could also write to an Azure Files Storage using its SDK and then use the Azure File Storage SMB mapping to view the logs as local files in Windows.


这篇关于如何从一个窗口监视多个App Service应用程序特定日志.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆