Section 3 · Cloud logs

Collect Azure logs using Azure Functions.

Estimated time: 1 min

How it works

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 documentation.