# Azure Log Analytics and Workspaces

> Chapter 117 of the Courseiva AZ-900 curriculum — https://courseiva.com/learn/az-900/azure-log-analytics

**Official objective:** 3.3 — Azure Management Governance

## Introduction

This chapter covers Azure Log Analytics. AZ-900 tests under 3.3.

## Logs Database

Logs from various services are useful only if searchable. Log Analytics collects and indexes logs from Azure resources, making them searchable and analyzable.

## Core explanation

Log Analytics collects logs and metrics from Azure resources into a searchable database. Queries analyze logs for insights, troubleshooting, and monitoring.

## Real-world context

Logs from all VMs flow to Log Analytics; queries identify errors or performance issues across the fleet.

## Exam focus

Objective 3.3 expects understanding of Log Analytics for monitoring and analysis.

## Step by step

1. **Create a workspace** — A Log Analytics workspace is created.
2. **Connect sources** — Resources send logs to the workspace.
3. **Query** — Queries analyze logs for insights.

## Key takeaways

- Collects logs from resources.
- Enables log search and analysis.
- Foundation for monitoring and troubleshooting.

## FAQ

**What is Azure Log Analytics?**

It collects and indexes logs from Azure resources into a searchable database, enabling analysis for monitoring and troubleshooting.

---

Interactive version with quiz and diagrams: https://courseiva.com/learn/az-900/azure-log-analytics
