Cribl LogStream – Docs

Cribl LogStream Documentation

Questions? We'd love to help you! Meet us in #Cribl Community Slack (sign up here)
Download entire manual as PDF – v.3.1.1

Docker Deployment

Use this docker-compose.yml to stand up a LogStream distributed deployment:

version: '3.5'
    image: ${CRIBL_IMAGE:-cribl/cribl:latest}
      - CRIBL_DIST_MODE=master
      - CRIBL_DIST_MASTER_URL=tcp://[email protected]:4200
      - CRIBL_VOLUME_DIR=/opt/cribl/config-volume
      - "19000:9000"
      - "~/cribl-config:/opt/cribl/config-volume"
    image: ${CRIBL_IMAGE:-cribl/cribl:latest}
      - master
      - CRIBL_DIST_MODE=worker
      - CRIBL_DIST_MASTER_URL=tcp://[email protected]:4200
      - 9000

This uses a local directory, ~/cribl-config, as the configuration store for LogStream. This directory must exist before you run the docker-compose command.

If you prefer to use ephemeral storage, simply delete line 8 (the CRIBL_VOLUME_DIR definition) and lines 11–12 (the volumes configuration) before running the docker-compose command.

To deploy a Leader Node, plus (e.g.) two Workers already configured and wired up to the Leader, use this command:

docker-compose up -d --scale workers=2

To deploy a different number of Workers, just change the workers=2 value. By default, the above command pulls the freshest stable image (tagged cribl/cribl:latest) from Cribl's Docker Hub. It defaults to the following URLs and ports:

With virtual machines, replace localhost with the VMs' IP addresses. The automatic assignment of available host-OS ports to the Workers prevents port collisions. Within the Docker container, these ports will forward over TCP to port 9000. To see the ports assigned on the OS, enter:

docker ps

You should see results like these:

CONTAINER ID   IMAGE                COMMAND                  CREATED          STATUS          PORTS                                         NAMES
a3de9ea8f46f   cribl/cribl:latest   "/sbin/…"   12 seconds ago   Up 10 seconds>9000/tcp                       docker_workers_1
40aa687baefc   cribl/cribl:latest   "/sbin/…"   12 seconds ago   Up 10 seconds>9000/tcp                       docker_workers_2
df362a65f7d1   cribl/cribl:latest   "/sbin/…"   13 seconds ago   Up 11 seconds>9000/tcp, :::19000->9000/tcp   docker_master_1

The host-OS ports are shown on the left, forwarding to the container-internal ports on the right. You can use the docker_workers_N ports if you want to to log directly into Workers. In the above example:

If your Leader is crashing with two Workers, make sure you are allocating enough memory to Docker.

Updated a day ago

Docker Deployment

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.