Configuring retention for Loki in a Grafana Cloud stack

I just created a free tier Grafana Cloud stack to start working with collecting and analyzing logs and metrics. When pushing data to the Loki-instance I get by default, it drop all logs older tha a week. Is there any way to change that? Do I need to run my own Loki-instance somewhere to enable longer retention than 7 days?

Running it locally with Docker enables me to configure this in the Loki config.yaml, but I’m unable to locate this file for the Loki installation running in the Grafana Cloud.

Though I appreciate the response, it didn’t really give me any help.

My chances of buying additional tools would increase if I actually got help and your tool is obviously easier to use.

Right now this seems like an AI-generated sales pitch. Which is a turn-off. Very much so.

1 Like

Of course free tier has own limits. You can pay for Grafana Cloud and you will have longer retention periods:

Thanks for the info.

Seems the paid version has a fixed 30-day retention. I was hoping this could be configured somehow / somewhere. I’ll try a AWS-based Loki and see how that works.

That will ruin a business plan of Grafana Labs :-D. Everybody will configure “forever” retention period in their free plans.

If you are serious paid enterprise customer, then I guess you can pay for longer retention periods and your Grafana Cloud support should be able to configure that for you.

You can still deploy own Loki cluster and customize it for your needs.

We’re planning on paying, yes.
I was just hoping the option was visible somewhere. At least that it was visible the first two ‘unlimited’ weeks.
But if I need Grafana Support to be involved, it might be easier to run Loki myself. We have fairly low volume, so I’d like to be able to push up retention.

1 Like