With Docker version 18.09.5, build e8ff056 and filebeat:7.1.1 (by elasticsearch) when I type:
$ docker logs filebeat > filebeat.log
I see the logs but the filebeat.log is empty.
If I try:
$ docker logs logstash > logstash.log
I don't see the log to console but the file il full with the logs lines.
The used OS is: Ubuntu 19.04