Retain less logs for specific pods

Hey!

I am creating a production environment with loki-distributed and I want to keep our logs for about a year(for analysis purposes). However, since this will use a lot of storage I want to use some kind of different retention policies for some pods, apps, or namespaces.

Is there any way to do that?

/Angelos

Hey Angelos

You can refer to our documentation page on retention: Retention | Grafana Loki documentation
You can have different retention policies configured to keep certain streams (unique combinations of labels) around longer than others.

1 Like

Hey Danny,

Thank you for your fast response!
I will try this. Will this work with Loki-distributed helm chart?

/Angelos

It will, although I don’t know off-hand how to configure this in the helm chart itself.

1 Like

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