Documentation for automated readers
A curated documentation index is available at: https://grafana.com/llms.txt
A complete documentation index is available at: https://grafana.com/llms-full.txt
These indexes can help with page discovery before fetching individual documents.
This page is also available in Markdown, which may be easier for automated readers and AI tools to parse than HTML. The Markdown version is available at https://grafana.com/docs/alloy/latest/scenarios/logs.md, or by sending Accept: text/markdown to https://grafana.com/docs/alloy/latest/scenarios/logs/. For broader documentation discovery, the curated index is available at https://grafana.com/llms.txt and the complete index is available at https://grafana.com/llms-full.txt.
Menu
Open source
Last reviewed: November 17, 2026Logs scenarios
The logs scenarios collect logs from files, network protocols, message queues, and browsers, then forward them to Loki.
| Scenario | Description |
|---|---|
| Amazon Data Firehose logs | Ingest Amazon Data Firehose deliveries with loki.source.awsfirehose. Uses a local sender. No AWS account required. |
| Azure Event Hubs logs | Ingest Azure Event Hubs messages with loki.source.azure_event_hubs. Uses a self-managed broker speaking the same wire protocol. No Azure subscription required. |
| Faro frontend observability | Collect frontend web telemetry, including logs, errors, and web vitals, from browser applications with the Faro Web SDK. |
| GELF log ingestion | Ingest Graylog Extended Log Format logs over UDP. |
| Kafka logs | Consume and process logs from Apache Kafka topics. |
| Log API gateway | Use Alloy as a centralized log gateway that accepts logs via a Loki-compatible push API endpoint. |
| Log routing | Route logs from multiple sources to different Loki tenants based on log content and origin. |
| Log secret filtering | Redact sensitive credentials and secrets from logs with pattern rules before storage. |
| Log-to-metrics | Extract a request counter and latency histogram from application logs while forwarding the raw logs to Loki. |
| Logs from file | Tail log files with Alloy. |
| Logs over TCP | Receive and process TCP logs in JSON format. |
| Popular logging frameworks | Parse logs from popular logging frameworks across 7 programming languages. |
| Promtail to Alloy migration | Run Promtail (EOL March 2026) and its alloy convert equivalent side by side against one log file and verify identical results in Loki. |
| Structured log parsing | Parse structured logs into labels and structured metadata. |
| Syslog monitoring | Monitor non-RFC5424 compliant syslog messages with rsyslog and Alloy. |
| systemd journal | Forward systemd journal entries to Loki with filters and labels tuned for fast queries. |
| Windows security events | Forward Windows Security event logs to Loki with filters and field extraction for security operations center workflows. |
Refer to the alloy-scenarios repository for the full list of scenarios.
Was this page helpful?
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:
Video

How to get started with OpenTelemetry and Grafana
OpenTelemetry delivers vendor-agnostic telemetry. Grafana turns that data into outcomes — not just dashboards — using AI-assisted workflows in Grafana Assistant.
Video

Mastering OpenTelemetry instrumentation and Grafana
A practical guide to code-based OpenTelemetry instrumentation with Grafana — demonstrates advanced techniques for adding custom spans, metrics, and attributes to capture application context that zero-code instrumentation cannot always reveal.
Video

What's new in Grafana Alloy's OpenTelemetry engine
Grafana Labs engineers introduce Alloy's new OpenTelemetry Engine. Learn how to configure Alloy using standard OpenTelemetry Collector YAML and enable native OpenTelemetry pipelines integrated with Grafana.
Choose a product
Viewing: v1.22 (latest)
Find another version
Scroll for more