Store Loki logs depending on the service


I am using Loki in production. I send logs to Loki via Fluentbit/fluentd and Loki saves them to s3 storage.
We have several databases(DB1, DB2, etc.) from where the fluentbit sends the logs to Loki.
Is there any way to save those logs in different buckets in s3?
According to documentation, there is an option in Loki configuration to add multiple bucketnames(like DB1-logs, DB2-logs), but I couldn’t find a way to store for example the logs from DB1 to DB1-logs and from DB2 to DB2-logs.