aceberg / WatchYourLAN

Lightweight network IP scanner with web GUI
https://hub.docker.com/r/aceberg/watchyourlan
MIT License
1.24k stars 55 forks source link

Feature request : log management / rotate or compress #48

Closed eskiiom closed 1 year ago

eskiiom commented 1 year ago

Hello,

I am running watchyourlan for a while now. It's so handy when you have too many devices running :) But I just noticed that the logfile of this container is now 1.2Gb large. (running since sept. 19th) Could there be an option to free some space ? Or can I just wipe the log file without loosing any data ?

Thanks !

aceberg commented 1 year ago

Hello,

I am running watchyourlan for a while now. It's so handy when you have too many devices running :) But I just noticed that the logfile of this container is now 1.2Gb large. (running since sept. 19th) Could there be an option to free some space ? Or can I just wipe the log file without loosing any data ?

Thanks !

Yes, you can safely wipe the log.

It's actually Docker's responsibility to handle containers logs. So, to avoid this problem in the future, you can configure log file limit in /etc/docker/daemon.json or for a single container: https://docs.docker.com/config/containers/logging/json-file/

eskiiom commented 1 year ago

Great thank you for your detailed answer, will check that option !