I installed OpenVidu CE 2.25 with docker on a ubuntu VM. How do I clear all the logs (kms etc)? All I find is a folder kurento-logs. Thanks!
The OpenVidu CE deployment is by default configured to store 100MB of logs in the Docker Daemon (these are the logs that you can access with command docker logs ...
).
Besides this, Kurento logs are also stored without limit in path /opt/openvidu/kurento-logs
. If you want to clean these logs, just clean path /opt/openvidu/kurento-logs
.
Cheers.
Thanks for the tip. I found the kurento logs folder and delete d them. But command ‘openvidu logs’ and ‘docker-compose logs -f’ still show many many log entries which I dont need anymore. How I clear these?
This is Docker territory. Be careful: you may corrupt the container logs. We do not recommend doing this, but if you want just do a quick search online:
- https://www.howtogeek.com/devops/how-to-clear-logs-of-running-docker-containers/
- How to Clear Log Files of A Docker Container – TecAdmin
- https://khoirul.id/how-to-clear-docker-logs-and-activate-log-rotate/
If you want to customize the logging of a Docker deployment, you should research the logging Docker configuration, which allows you to change the rotation size of the log files and their duration: Configure logging drivers | Docker Documentation
Ah alright. I was hoping for a built-in switch to clean it up. Thanks!