- Documentation
- Learning Hub
- Section 3 of 4 Cloud logs
GCP logs: Alloy + Pub/Sub
Slide 8 of 10
How it works
Complexity: Moderate | Infrastructure: Pub/Sub + Alloy | Latency: Streaming
You create a log sink in Cloud Logging with filters that select which logs to export. The sink routes them to a Pub/Sub topic. Alloy subscribes to the topic, processes the logs, and forwards them to Grafana Cloud Logs. Sink filters let you reduce volume at the source.
Considerations
- Reliable Pub/Sub message delivery
- Log sink filtering to reduce volume
- Workload identity authentication
- Full processing pipeline
- Alloy infrastructure to deploy, maintain, and update
- Pub/Sub cost, plus setup steps
Documentation
View the GCP logs documentation.