# Logs distribution between storages based on tenant

**URL:** <https://community.grafana.com/t/logs-distribution-between-storages-based-on-tenant/64283>\
**Category:** Grafana Loki\
**Created:** [April 20, 2022, 12:08am UTC](https://community.grafana.com/t/logs-distribution-between-storages-based-on-tenant/64283 "2022-04-20T00:08:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lokidv](https://avatars.discourse-cdn.com/v4/letter/l/e5b9ba/32.png) [@lokidv](https://community.grafana.com/u/lokidv)\
**Post date:** [April 20, 2022, 12:08am UTC](https://community.grafana.com/t/logs-distribution-between-storages-based-on-tenant/64283/1 "2022-04-20T00:08:33Z")

</div>

I have Loki installation that use AWS s3 as logs storage configured as described in the manuals like this:

```auto
    storage_config:
      boltdb_shipper:
        shared_store: s3
        active_index_directory: /var/loki/index
        cache_location: /var/loki/cache
        cache_ttl: 336h
      aws:
        s3: s3://eu-central-1/
        bucketnames: mybucket-0,mybucket-1,mybucket-2,mybucket-3
        access_key_id: ${AWS_ACCESS_KEY_ID}
        secret_access_key: ${AWS_SECRET_ACCESS_KEY}
        s3forcepathstyle: true

```

Now I need to add one more tenant and I have a requirement to store these logs on s3 but in another region in US and then use it ONLY for logs from this tenant.  
Is it possible to implement?

---

<div class="post-metadata">

**Author:** ![ec3rdfazz](https://avatars.discourse-cdn.com/v4/letter/e/e99b99/32.png) [@ec3rdfazz](https://community.grafana.com/u/ec3rdfazz)\
**Post date:** [May 13, 2022, 12:52am UTC](https://community.grafana.com/t/logs-distribution-between-storages-based-on-tenant/64283/2 "2022-05-13T00:52:06Z")

</div>

I’d be using 2 seperate loki instances in that case. That’s what I’m doing. I have 2 containers and expose a different port for each container. You might need another multi-tenant-proxy container but that’s very little overhead. I dont know what app you use to scrape the logs in the first place. I had a little trouble getting the clients: section working in promtail so I switched to fluentd as the sender and , after a bit more fiddling, got that to work.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/grafana/original/2X/e/ef5308cc58c9e5a13187b5012eb99f406928462f.png) [@system](https://community.grafana.com/u/system)\
**Post date:** [May 13, 2023, 12:52am UTC](https://community.grafana.com/t/logs-distribution-between-storages-based-on-tenant/64283/3 "2023-05-13T00:52:40Z")

</div>

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
