【问题标题】:How to display azure app service's web server log on Azure log Analytics?如何在 Azure 日志分析上显示 azure 应用服务 Web 服务器日志?
【发布时间】:2016-06-29 10:36:42
【问题描述】:

我有一个托管在 azure App 服务上的 api 应用程序。对于 Web 服务器日志(iis 日志),我已从 Azure 门户打开 Web 服务器日志记录。看看下面的截图。

用于存储网络服务器日志

服务器日志只允许存储在 Azure blob 容器中。根据配置,日志按预期存储在 blob 容器中。现在我想使用这些日志显示在 Azure Log Analytics 上。

我在 Azure Web 门户中的 Log Analytics 上有以下存储配置。

在 Log Analytics 资源管理器中,我可以查看来自除 Web 服务器之外的所有其他来源的日志(iis 日志)。我在这里缺少什么?

【问题讨论】:

  • 是否与您在数据源菜单中配置的日志级别有关。只是猜测..
  • 我不这么认为:(
  • 如果它仍然是实际的:如果门户配置没问题,很可能是跟踪侦听器和级别配置或日志本身有问题。
  • 我想查看服务器日志(API日志),你找到解决办法了吗?

标签: azure logging cloud azure-web-app-service log-analysis


【解决方案1】:

Verified with App Services team Log Analytics 仅支持 IaaS (VM) 级别,不 PaaS(应用服务)级别。

希望我们能尽快将其纳入他们的路线图 - 现在您必须手动将这些数据提取到外部日志管理工具中(Splunk、Sumo Logic、Azure Data Explorer)。

2019 年 12 月 2 日更新

Azure 应用服务已宣布Public Preview for IIS App Log integration with Azure Log Analytics。

【讨论】:

  • 非常有用。谢谢,很高兴听到 MSFTer 的来信。因为我找不到它,所以我认为我错过了一些东西,因为这似乎是一个明显的遗漏。也很高兴看到您的其他工具列表。
  • 我真的不明白为什么不支持这个?我的意思是它的日志文件?他们来自哪里重要吗?无法根据原始 http 日志轻松创建警报和内容真是令人沮丧。
  • 根据 11 月 4 日的公告,现在可以预览,azure.microsoft.com/en-us/updates/…。
  • @Kieron - confirming the feature is now in preview => 很棒的收获!
【解决方案2】:

扩展之前的答案,在Diagnostic settings (preview) 窗格下,您现在可以通过Add diagnostics setting 将多个日志集成到 Azure,这可以存储:

  • AppServiceAntivirusScanAuditLogs
  • AppServiceHTTPLogs
  • AppServiceConsoleLogs
  • AppServiceAppLogs
  • AppServiceFileAuditLogs
  • AppServiceAuditLogs
  • AppServiceIPSecAuditLogs
  • AppServicePlatformLogs
  • 所有指标

您可以将它们发送到:

  • Log Analytics 工作区
  • 存档到存储帐户
  • 流到事件中心
  • 发送给合作伙伴解决方案

此外,Application Insights 正在迁移以得到 Log Analytics 的支持,因此我们正在接近完全集成的指标和日志平台

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-12-26
    • 2017-03-30
    • 2021-12-11
    • 1970-01-01
    • 2015-03-15
    • 1970-01-01
    • 1970-01-01
    • 2022-01-22
    相关资源
    最近更新 更多