---
title: "Logs scenarios | Grafana Cloud documentation"
description: "Runnable scenarios that collect, parse, route, and redact logs with Grafana Alloy"
---

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

# Logs scenarios

The logs scenarios collect logs from files, network protocols, message queues, and browsers, then forward them to Loki.

Expand table

| Scenario                                                                                                                                  | Description                                                                                                                                                       |
|-------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Amazon Data Firehose logs](https://github.com/grafana/alloy-scenarios/tree/main/aws-firehose-logs)                                       | Ingest Amazon Data Firehose deliveries with `loki.source.awsfirehose`. Uses a local sender. No AWS account required.                                              |
| [Azure Event Hubs logs](https://github.com/grafana/alloy-scenarios/tree/main/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](https://github.com/grafana/alloy-scenarios/tree/main/faro-frontend-observability)                           | Collect frontend web telemetry, including logs, errors, and web vitals, from browser applications with the Faro Web SDK.                                          |
| [GELF log ingestion](https://github.com/grafana/alloy-scenarios/tree/main/gelf-log-ingestion)                                             | Ingest Graylog Extended Log Format logs over `UDP`.                                                                                                               |
| [Kafka logs](https://github.com/grafana/alloy-scenarios/tree/main/kafka)                                                                  | Consume and process logs from Apache Kafka topics.                                                                                                                |
| [Log API gateway](https://github.com/grafana/alloy-scenarios/tree/main/log-api-gateway)                                                   | Use Alloy as a centralized log gateway that accepts logs via a Loki-compatible push API endpoint.                                                                 |
| [Log routing](https://github.com/grafana/alloy-scenarios/tree/main/routing)                                                               | Route logs from multiple sources to different Loki tenants based on log content and origin.                                                                       |
| [Log secret filtering](https://github.com/grafana/alloy-scenarios/tree/main/log-secret-filtering)                                         | Redact sensitive credentials and secrets from logs with pattern rules before storage.                                                                             |
| [Log-to-metrics](https://github.com/grafana/alloy-scenarios/tree/main/log-to-metrics)                                                     | Extract a request counter and latency histogram from application logs while forwarding the raw logs to Loki.                                                      |
| [Logs from file](https://github.com/grafana/alloy-scenarios/tree/main/logs-file)                                                          | Tail log files with Alloy.                                                                                                                                        |
| [Logs over TCP](https://github.com/grafana/alloy-scenarios/tree/main/logs-tcp)                                                            | Receive and process TCP logs in JSON format.                                                                                                                      |
| [Popular logging frameworks](https://github.com/grafana/alloy-scenarios/tree/main/app-instrumentation/logging/popular-logging-frameworks) | Parse logs from popular logging frameworks across 7 programming languages.                                                                                        |
| [Promtail to Alloy migration](https://github.com/grafana/alloy-scenarios/tree/main/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](https://github.com/grafana/alloy-scenarios/tree/main/mail-house)                                                 | Parse structured logs into labels and structured metadata.                                                                                                        |
| [Syslog monitoring](https://github.com/grafana/alloy-scenarios/tree/main/syslog)                                                          | Monitor non-RFC5424 compliant syslog messages with `rsyslog` and Alloy.                                                                                           |
| [systemd journal](https://github.com/grafana/alloy-scenarios/tree/main/systemd-journal)                                                   | Forward systemd journal entries to Loki with filters and labels tuned for fast queries.                                                                           |
| [Windows security events](https://github.com/grafana/alloy-scenarios/tree/main/windows-events)                                            | Forward Windows Security event logs to Loki with filters and field extraction for security operations center workflows.                                           |

Refer to the [alloy-scenarios](https://github.com/grafana/alloy-scenarios) repository for the full list of scenarios.
