Log management in docker container

I am running marqo 2.11 in a docker container. Is there a way to manage logs (other than simple log levels) through configuration parameters, for example, log rotation or log pruning?

Hi @rcking . Marqo logs are printed to stdout and stderr. You can use Docker logging drivers to control if and where these are persisted. Since container log persistence is configured through Docker, Marqo can’t provide a log rotation mechanism.

When using the built-in Vespa, Vespa logs are stored at /opt/vespa/logs in the container. The built-in Vespa is not recommended for production use-cases so log rotation shouldn’t be a concern, but if you chose to implement this, you could use bind mounts to access /opt/vespa/logs on the host machine and rotate logs.

2 Likes

Thank you - very helpful!