We have a branch on feature/dockerbeat. Name is TBD.
This is a docker logging plugin that's installed via docker plugin install... and works alongside the docker engine to send logs to elasticsearch. It uses libbeat and supports most of the config options and outputs libbeat does. Initial commit was #13761
Issues
Experimental Release - 7.6
7.9.0
7.10.0
Later
Testing
This is fairly easy to test.
Once you have everything pulled down, run mage buildAndInstall to build the plugin. Docker plugins are configured with --log-opts, you can start a plugin using the log handler with:
$ docker run --log-driver=elastic/elastic-log-driver:8.0.0 \
--log-opt output.elasticsearch.hosts="172.18.0.2:9200" \
--log-opt output.elasticsearch.index="dockerbeat-test" \
-it debian:jessie /bin/bash`
Almost any option that you would specify with -E in filebeat, you could specify with --log-opt in the plugin.
We have a branch on feature/dockerbeat. Name is TBD.
This is a docker logging plugin that's installed via
docker plugin install...and works alongside the docker engine to send logs to elasticsearch. It uses libbeat and supports most of the config options and outputs libbeat does. Initial commit was #13761Issues
Experimental Release - 7.6
We need an actual name
internal logging is a mess
Send out container tags [Docker log driver] cleanup output #14615
The code that reads from the FIFO pipe is a mess, and copied from docker's example plugin. The protobuf reader is questionable, and we might want to implement our own reader. [docker plugin] Refactor pipeline reader for data safety #14375
remove trailing
\rfrom log lines [Docker log driver] cleanup output #14615Potential race with creating new pipelines [docker log driver] Move pipeline check + creation to single atomic operation #14518
Go version used on master is enforcing import format comments, breaking
docker/engine[Docker logging driver] Shuffle around docker deps due to import path checking #14523We need a test suite [Docker Log driver] Expand testing, add mocking tooling #14828
make checkandmake fmtsupport?Use LoadWithSettings [Elastic Logging Plugin] Use LoadWithSettings and clean up pipeline code #15038
Use proper dedot/stripping functions
We need to figure out how to get on the docker plugin store
Clean up vendor/ and deal with conflicting docker/prometheus dependencies
Proper asciidocs working on this with @dedemorton [docs] Add early draft of Elastic Log Driver docs #15799
7.9.0
docker logsneeds to work. This may depend on the spooling features.7.10.0
Later
documentationin config.jsonTesting
This is fairly easy to test.
Once you have everything pulled down, run
mage buildAndInstallto build the plugin. Docker plugins are configured with--log-opts, you can start a plugin using the log handler with:Almost any option that you would specify with
-Ein filebeat, you could specify with--log-optin the plugin.