Docker
The Mezmo Docker container lets you send logs from Docker, Docker Cloud, Amazon Elastic Container Service (ECS), and other Docker-based platforms. The container automatically collects logs generated by other containers running on the host and sends them to Mezmo's ingestion servers. The container is based on Logspout and supports custom metadata, such as a custom hostname and tags.
To learn how to send logs from orchestration tools like Kubernetes, Docker Swarm, and Rancher, see the Kubernetes documentation page.
As part of your container logging strategy, all of your containers should log to STDOUT and STDERR (standard output). Not only is this required for Logspout to work, but Docker itself expects containers to log to these outputs. Logging your containers to standard output is both a best practice and essential for the Logspout container to function.
Set Up Docker Log Ingestion
Mezmo supports log ingestion from these Docker platforms:
- Docker
- Docker Cloud
- Docker Compose
- Docker Swarm
- Amazon Elastic Container Service (ECS)
- Rancher
- Convox
Follow the instructions in the Mezmo Web App to set up Docker log ingestion using your Mezmo ingestion key.
- Log in to the Mezmo Web App.
- In the bottom section of the left-hand navigation, click Help.
- Select Add Log Sources.
- Under Via platform, click Docker.
- Follow the instructions to set up Docker log ingestion. Your ingestion key is automatically inserted into the configuration code.