Multiple Loki sending to one S3

Hi! My name is Emi. Question about multiple Loki using same S3 bucket for its storage. We have multiple k8s cluster which are not peered but we need to have central place to store logs from those cluster.

I could use multi tenancy if those cluster are peered but I can’t. But sending to same S3 bucket with single tenancy mode will be problem cuz orgId will not be unique.

Is there good way to solve this? Can I just add tenantID or something unique in single tenant mode?

Thank you!!

Emi

You could enable multi-tenant mode and just have a proxy in front of Loki add the X-Scope-OrgID header to all incoming packets to set the org for all incoming requests (you would want this for reads and writes)

It also should be ok to send traffic from multiple Loki servers to the same bucket with the same tenant ID, just be aware that queries would include data from both tenants.