Docker

Mezmo provides an integration to stream, aggregate, and gain insights from Docker logs

📘

LogDNA is now Mezmo

LogDNA has recently become Mezmo. As you access technical resources like our API, Code Libraries, and GitHub repositories, you will continue to see references to LogDNA for a short time as we update our new name across all our resource channels.

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. For more information about configuring the Docker integration, see the documentation in our GitHub repository.

👍

Setting Logging Outputs

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.

  1. Log in to the Mezmo Web App.
  2. In the left-hand navigation, click the Help icon.
  3. Click Logging Setup.
  4. Under Via platform, click Docker.
  5. Follow the instructions to set up Docker log ingestion.
    Note that your ingestion key is automatically inserted into the configuration code.