This repository shows how to process logs with Grafana Alloy, s.t. they are dynamically routed to different tenants in Loki.
Install just and docker. Run just to see available commands. In order to spin up the stack, run:
just devBrowse to http://localhost:12000 to see the Grafana UI and view logs.
Alloy is configured to set the loki tenant dynamically based on the content of the log message. This demo uses the tenants app (all logs), tenant1, and tenant2.