Rsyslog can be used to stream your applications logs (watchdog). It's similar to using syslog, however there's no syslog in PHP container (one process per container). Rsyslog will stream all incoming logs to a container output.
Here how you can use it with Monolog:
- Install monolog module. Make sure all dependencies being downloaded
- Add new handler at
monolog.handler.rsyslog: class: Monolog\Handler\SyslogUdpHandler arguments: ['rsyslog']
- Rebuild cache (
rsysloghandler for your channels
- Find your logs in rsyslog container output
Read Logging in Drupal 8 to learn more.