Public | Automated Build

Last pushed: 3 years ago
Short Description
Short description is empty for this repo.
Full Description


Lean (16MB) logstash-forwarder Docker image.

Here you will find a Dockerfile for assembling a logstash-forwarder container that communicates with logstash server over secure Lumberjack protocol. This could be the base for all your Docker images that need logstash-forwarder.

runit will make sure that your service runs on container start-up and supervises it. In case the service dies, runit brings it back to life.

The image is available at


  1. runit is installed from edge packages.
  2. logstash-forwarder binary is available in binaries folder. Script to build said binary is also included.


  • Docker 1.6.2 or newer
  • User account with permissions to run Docker client

Run it

docker run --rm \
    --volume /path/to/config:/logstash-forwarder/config \
    --volume /path/to/certs:/logstash-forwarder/certs \

Build logstash-forwarder

The following command will clone logstash-forwarder repo, build logstash-forwarder and copy the resulting binary to binaries folder.

ATTENTION: The images currently available have support for multiple certificates in the SSL CA chain. This is not supported by the aforementioned build script.


Now, you just need to rebuild the image.

SSL self-signed certificates

  • logstash - needs certificate and key
  • logstash-forwarder - needs bundle ca certificate (which must include root ca certificate)
openssl req -x509 -nodes -newkey rsa:2048 -keyout logstash-forwarder.key -out logstash-forwarder.crt

Be sure to set a CN that corresponds to a hostname resolvable by your hosts.

Docker Pull Command
Source Repository