Azure Monitor(二)Log Analytics

一,引言( 前情回顾)

   Azure Monitor 包括 Log AnalyticsApplication Insights,其提供的高级工具适用于收集和分析遥测数据,以便最大程度地提高云和本地的资源和应用程序的性能和可用性。 它可以帮助我们了解应用程序的性能,并主动识别影响应用程序及其所依赖资源的问题。

  Application Insights 是 Azure Monitor 的一项功能,是面向开发人员和 DevOps 专业人员的可扩展应用程序性能管理 (APM) 服务。 使用它可以监视实时应用程序。 它将自动检测性能异常,并且包含了强大的分析工具来帮助诊断问题,了解用户在应用中实际执行了哪些操作。 它旨在帮助持续提高性能与可用性。 

今天,将带来Azure Monitor 的姊妹篇-----Log Analytics(其实上一节已经使用到Log Analytics的一些功能)

二,正文 1,什么是 Log Analytics?

  Log Analytics 是 Azure 门户中用于编写日志查询以及以交互方式分析其结果的主要工具。 即使在 Azure Monitor 中的其他位置使用某个日志查询,通常你也会先使用 Log Analytics 编写和测试该查询。

Azure Monitor(二)Log Analytics

 2,了解Log Analytics

   Log Analytics 是用来编写和执行 Azure Monitor 日志查询的 Web 工具。 可以通过在 Azure Monitor 菜单中选择“日志”来将其打开。 它将启动并显示一个新的空白查询。

Azure Monitor(二)Log Analytics

 

 

 

Azure Monitor(二)Log Analytics

 3,基本查询 3.1 基于表的查询

Azure Monitor 在表中组织日志数据,每个表由多个列组成。 所有表和列都显示在 Analytics 门户中的 Log Analytics 中的架构窗格内。 找到所需的表,然后看看其中的一些数据:

traces | order by timestamp desc

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/zzfjdw.html