Each team wants its own log index, retention and access. How do you implement multi-tenancy?

IntermediateScenarioLogging Pipelines
Answer

Situation read → Shared backend, separate data boundaries, different retention needs.

What I'd do →

  1. In Loki, enable auth_enabled: true and set the X-Scope-OrgID tenant header per team at the gateway or shipper.
  2. Configure per-tenant limits and retention in runtime_config overrides (retention_period, ingestion_rate_mb).
  3. In Grafana, create a data source per tenant and map it to a team with permissions.
  4. In Elasticsearch/OpenSearch, use index patterns per team and role-based access with document-level security if needed.

Why → Tenant isolation prevents one noisy team from hurting others and keeps data access least-privilege.

Interview tip → Mention per-tenant rate limits as the main defence against noisy neighbours.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Logging Pipelines