docs/sources/send-data/alloy/_index.md
Grafana Alloy is a versatile observability collector that can ingest logs in various formats and send them to Loki. We recommend Alloy as the primary method for sending logs to Loki, as it provides a more robust and feature-rich solution for building a highly scalable and reliable observability pipeline.
{{< figure src="/media/docs/alloy/flow-diagram-small-alloy.png" alt="Alloy flow diagram" >}}
To get started with Grafana Alloy and send logs to Loki, you need to install and configure Alloy. You can follow the Alloy documentation to install Alloy on your preferred platform.
Alloy pipelines are built using components that perform specific functions. For logs these can be broken down into three categories:
Here is a non-exhaustive list of components that can be used to build a log pipeline in Alloy. For a complete list of components, refer to the components list.
| Type | Component |
|---|---|
| Collector | loki.source.api |
| Collector | loki.source.awsfirehose |
| Collector | loki.source.azure_event_hubs |
| Collector | loki.source.cloudflare |
| Collector | loki.source.docker |
| Collector | loki.source.file |
| Collector | loki.source.gcplog |
| Collector | loki.source.gelf |
| Collector | loki.source.heroku |
| Collector | loki.source.journal |
| Collector | loki.source.kafka |
| Collector | loki.source.kubernetes |
| Collector | loki.source.kubernetes_events |
| Collector | loki.source.podlogs |
| Collector | loki.source.syslog |
| Collector | loki.source.windowsevent |
| Collector | otelcol.receiver.loki |
| Transformer | loki.relabel |
| Transformer | loki.process |
| Writer | loki.write |
| Writer | otelcol.exporter.loki |
{{< docs/learning-paths title="Send logs to Grafana Cloud using Alloy" url="https://grafana.com/docs/learning-paths/send-logs-alloy-loki/" >}}
To learn more about how to configure Alloy to send logs to Loki within different scenarios, follow these interactive tutorials: