---
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 Logs](cp-olly-viz-azure-logs-functions-light.svg "Azure logs Functions architecture: Diagnostic Settings to Event Hub to Azure Functions to Grafana Cloud Logs")

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

Configure diagnostic settings on your Azure resources to stream logs to an Event Hub. An Azure Function triggers when logs arrive and forwards them to Grafana Cloud Logs.

## Considerations

- Serverless and event-driven
- Automatic scaling
- Native Azure integration
- Near real-time delivery
- Basic log processing capability
- Function execution and Event Hub costs
- Subject to the Azure Functions timeout limit

## When to use

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

## Documentation

View the [Azure Functions logs](/docs/grafana-cloud/monitor-infrastructure/monitor-cloud-provider/azure/config-azure-logs-azure-function/) documentation.
