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 quay.io/pires.
runit is installed from edge packages.logstash-forwarder binary is available in binaries folder. Script to build said binary is also included.docker run --rm \
--volume /path/to/config:/logstash-forwarder/config \
--volume /path/to/certs:/logstash-forwarder/certs \
quay.io/pires/docker-logstash-forwarder:0.4
logstash-forwarderThe 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.
./build_binaries.sh
Now, you just need to rebuild the image.
logstash - needs certificate and keylogstash-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.
Content type
Image
Digest
sha256:c72f9c5b3…
Size
6.4 MB
Last updated
about 11 years ago
docker pull pires/docker-logstash-forwarder