Hi,
We would like to implement different retention periods for operational logs and audit logs using Azure Blob storage
Setting per stream retention period works the way that data are not searchable, but they stay in storage, and the only possibility of deleting data is using lifecycle management.
I have also tried setting up multi-tenant environment in the hope that it will separate data to different folders but they stay still in fake folder.
Is there any possibility of how to do it, or will I need to set up two different Lokis with different storage and lifecycle management?
How did you determine that the data are still in the storage?
This is definitely a misconfiguration.
In general, I think either solution you already attempted would do what you need, and if you found them to not work then I think it’s most likely some configuration issue that can be fixed. If you have the freedom to separate audit logs from regular logs via tenant ID, that’s probably the easiest way to go. I’d say evaluate and pick a solution you think will work best for you, if it doesn’t work share your configuration and we can try and figure it out.
When I had 90d lifecycle management enabled, data were deleted. When I changed it back to 365d and kept a 90d retention period, it stopped dropping down.
But it seems that there is some delay until it is moved to the “tenant” folder. When it is day one, it is kept in the index folder, and after the compactor kicks in, it moves it to the tenant folder. Is that a correct assumption?