A fully automated Docker to Elastic Stack logging solution.
Using Filebeat โ ElasticSearch โ Kibana
to generate, query, and aggregate logs.
An application writes JSON structured logs
to the standard error and because everything runs through Docker, Docker automatically generates *.log
files which Filebeat
reads and sends to ElasticSearch
.
- Print
JSON structured logs
to thestandard error
- Build and run everything through
Docker
- Inside the
Dockerfile
add a label offilebeat="true"
forFilebeat
to automatically discoverDocker
containers without needing a restart