Installing the ELK stack
You can use various methods to install the ELK stack, such as installing individual components as per the operating system, or downloading the Docker images and running them individually, or executing the Docker images using Docker Compose/Docker Swarm/Kubernetes. You are going to use Docker Compose in this chapter.
Let's understand the grammar of the Docker Compose file before we create the ELK stack Docker Compose file. The Docker Compose file is defined using YAML. The Docker Compose file contains four important top-level keys:
version
: This denotes the version of the Docker Compose file format. You can use the appropriate version based on installing the Docker Engine. You can check the link at https://docs.docker.com/compose/compose-file/ to ascertain the mapping between the Docker Compose file version and the Docker Engine version.services
: This contains one or more service definitions. The service definition represents the service...