探索 Log Analytics

監控與疑難排解 Azure 解決方案

Ebadur Osib

Senior Cloud Consulting Engineer

日誌無所不在

到處都是日誌

監控與疑難排解 Azure 解決方案

Log Analytics 工作區

資料彙集漏斗

監控與疑難排解 Azure 解決方案

什麼是 Log Analytics 工作區

 

  • 集中式日誌資料存放區。
  • Azure Data Explorer 引擎。
  • 工作區支援 KQL。
  • 跨訂用帳戶與資源群組運作。
  • Azure Monitor 的基礎。

功能

監控與疑難排解 Azure 解決方案

為什麼重要

  • 沒有工作區時:
    • 日誌分散各處儲存。
    • 難以關聯問題。
    • 事件回應變慢。

難過的開發者

  • 有了工作區:
    • 提供統一視圖。
    • 端到端追蹤。
    • 更快找出根因。

開心的開發者

監控與疑難排解 Azure 解決方案

可傳哪些資料?

loganalyticsworkspace.jpg

 

  • 活動記錄
  • 資源效能計量
  • Application Insights 追蹤
  • 容器日誌
  • 網路日誌
監控與疑難排解 Azure 解決方案

在工作區中探索日誌

 

  • 查詢資料表以探索與調查。
  • 依時間、資源或類型篩選。
  • 發現跨環境的模式與異常。

匯出查詢

1 https://learn.microsoft.com/en-us/azure/azure-monitor/logs/log-excel
監控與疑難排解 Azure 解決方案

登入之謎

登入報表

  流量尖峰

監控與疑難排解 Azure 解決方案

登入之謎

停止作業

監控與疑難排解 Azure 解決方案

KQL 入門

KQL

 

  • 與日誌互動的語言。
  • 快速且唯讀。
  • 可幫你:
    • 篩選
    • 關聯
    • 摘要
    • 視覺化
監控與疑難排解 Azure 解決方案

重點回顧

LogAnalytics 摘要

監控與疑難排解 Azure 解決方案

一起來練習吧!

監控與疑難排解 Azure 解決方案

Preparing Video For Download...