---
title: "Azure logs - Functions | Grafana Labs"
description: "Collect Azure logs using Azure Functions."
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

## How it works

[Azure logs Functions architecture: Diagnostic Settings to Event Hub to Azure Functions to Grafana Cloud Loki](cp-olly-viz-azure-logs-functions-light.svg "Azure logs Functions architecture: Diagnostic Settings to Event Hub to Azure Functions to Grafana Cloud Loki")

**Complexity:** Simple | **Infrastructure:** Serverless | **Latency:** Event-driven

## Trade-offs

| Pros                     | Cons                        |
|--------------------------|-----------------------------|
| Serverless, event-driven | Function execution costs    |
| Scales automatically     | Event Hub costs             |
| Native Azure integration | Limited vs Alloy processing |
| Near real-time           | 10 min timeout limit        |

## When to use

- Event-driven log collection
- Serverless architecture
- Azure-native teams

## Documentation

View the full documentation. *Learning path coming soon!*

[Azure Functions logs](https://grafana.com/docs/grafana-cloud/monitor-infrastructure/monitor-cloud-provider/azure/config-azure-logs-azure-function/)
