Is it possible to reduce the used space by loki?

Hello,

is there a way to reduce the used space by loki?
The folder
/home/loki1/.local/share/containers/storage/volumes/loki-server-data/_data/chunks
is very big.
Or is there a way to clean up the folder?

Regards

Did you already try to set a lower value for the log retention?

2 Likes

Hi @mrmarkuz,
thanks for your answer.
Yes, I already changed it do 28 Days.

To remove the data you could remove the podman volume. I tested it and it worked but I don’t know if it’s the right method…

WARNING! All log data will be lost.

Enter loki instance environment:

runagent -m loki1

Stop service, remove volume and start service:

systemctl --user stop loki && podman volume rm loki-server-data && systemctl --user start loki
2 Likes

Thank you for your effort.
I think I will not do this at the moment.
Now I try to understand why I have so much log entries.
A lot comes from imapsync, what it looks like to me.
imapsync always lists all local folders in the logs.
But I think that’s something for a new request.

1 Like