Open source
Last reviewed: November 17, 2026

Logs scenarios

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

ScenarioDescription
Amazon Data Firehose logsIngest Amazon Data Firehose deliveries with loki.source.awsfirehose. Uses a local sender. No AWS account required.
Azure Event Hubs logsIngest 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 observabilityCollect frontend web telemetry, including logs, errors, and web vitals, from browser applications with the Faro Web SDK.
GELF log ingestionIngest Graylog Extended Log Format logs over UDP.
Kafka logsConsume and process logs from Apache Kafka topics.
Log API gatewayUse Alloy as a centralized log gateway that accepts logs via a Loki-compatible push API endpoint.
Log routingRoute logs from multiple sources to different Loki tenants based on log content and origin.
Log secret filteringRedact sensitive credentials and secrets from logs with pattern rules before storage.
Log-to-metricsExtract a request counter and latency histogram from application logs while forwarding the raw logs to Loki.
Logs from fileTail log files with Alloy.
Logs over TCPReceive and process TCP logs in JSON format.
Popular logging frameworksParse logs from popular logging frameworks across 7 programming languages.
Promtail to Alloy migrationRun Promtail (EOL March 2026) and its alloy convert equivalent side by side against one log file and verify identical results in Loki.
Structured log parsingParse structured logs into labels and structured metadata.
Syslog monitoringMonitor non-RFC5424 compliant syslog messages with rsyslog and Alloy.
systemd journalForward systemd journal entries to Loki with filters and labels tuned for fast queries.
Windows security eventsForward 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.