Rotation of logs in production environments

Just a general question. We are running pomerium in a production environment and we redirect the logs from stdout to a log file. We want to rotate logs since it’s growing quite large in a short span of time. We are considering using multilog for this purpose. Are there any other alternatives to be considered?

Most linux distributions have switched to systemd for managing services. It includes log management via journalctl and can be customized: journald.conf(5) — Arch manual pages. It can also forward logs to syslog which has its own set of configuration options.

Another option is to use a log aggregator of some sort. For example google cloud has cloud logging: https://cloud.google.com/logging/ or there are cross-platform 3rd party services like Datadog: https://docs.datadoghq.com/logs/.

You can also run your own log aggregator via Elasticsearch.