How to Manage Logs in a Docker Environment With Compose and ELK

we are going to see how to stop using flat files and directly send our application logs to a centralized log collecting stack (ELK). This approach presents numerous advantages:

  • Your machines’ drives are not getting filled up, which can lead to service interruption.
  • Centralized logs are much easier to search and back up.

Once your first data has been sent to logstash, it is then possible to create your first index by logging into kibana.