My Loki is installed on rhel8 as container using podman. I have run into issues with Loki taking up over 120G of disk space in the /share/containers/storage/overlay-containers directory . In comparison my Grafana container only uses 1.9G
I have one volume I attached pointing to loki/data - this is only 9.2G in size so wondering where all the extra space is coming from.
I logged into the container and ran: du -sh /* | short -h
The largest directory returned was /loki at 9.5G along with another 6 folder but all in the M or K size.
If my local share volume is only 9.2G and the largest folder in the container is only 9.5G then how or what is consuming 120G worth of disk space? I have had two instances of Loki running on different servers as podman containers and I have the same problem on each of them.
My current config file incase I did something wrong which is highly possible.
auth_enabled: false
It does not clean up on a restart. I will have to dive into the logs from the actual file location. I ran podman logs loki and that was a mistake because it is displaying on my screen and running forever.
We had to go into /.local/share/containers/storage/overlay-containers/f78d1fbdc27be707322aafec385d741915dd8749b15da047a2611c411fe0e3c6/userdata
which is the userdata directory for loki. Inside here is a log file named ctr.log. I am not 100% on how Loki uses this log but it was taking up all the the 120G.
Wondering exactly what this data is and means and how to keep it from getting to large without having to create some job to clean it up every so often.