Title
#users-public
Newskooler

Newskooler

09/27/2022, 8:31 AM
I am starting QDB via docker and I have a problem -> the docker logs are too many and my server space maxes out. What are solution I can take to not have so many logs until forever? 🤔
Jaromir Hamala

Jaromir Hamala

09/27/2022, 8:41 AM
Amy Wang

Amy Wang

09/27/2022, 8:48 AM
As @Jaromir Hamala mentioned, you can configure the qeustdb log and in addition, depending on your setting, you may be able to set the max log size - https://docs.docker.com/config/containers/logging/configure/
j

javier ramirez

09/27/2022, 8:50 AM
And of course you can always use logrotate to compress less recent logs and delete old ones automatically
Newskooler

Newskooler

09/28/2022, 11:32 AM
Thanks all! I will check all links now.@javier ramirez how can I use logrotate?
j

javier ramirez

09/28/2022, 4:31 PM
if your logs are mounted on the volume outside the container, you can use logrotate as you would do for any other log file https://www.digitalocean.com/community/tutorials/how-to-manage-logfiles-with-logrotate-on-ubuntu-16-04
Newskooler

Newskooler

10/06/2022, 12:44 PM
Hi, I am trying to finally address this logging issue in docker. I see that in
log.conf
there is a
# rolling file writer
rows. Is this what I need to configure in order to have a “rolling” log (i.e. one that only keeps most recent info and deletes old info?)