There is a task of sending structured logs from several Python applications running in Docker containers.Some of them work on asyncio.At the moment, I see 2 options:
  1. Use Logstash handler
  2. Use file handler and Filebeat

Which of these options is more reliable in operation?

1 Answers 1

Third option: docker input to Filebeat

Docker processes themselves should not be involved in logging, it is not their responsibility.

The reasons:
1.The principle of the sole responsibility of docker containers from best practice
2.The eleventh rule 12 factor app.