Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meta: Docker log driver plugin, explerimental to GA #13990

Closed
20 of 26 tasks
fearful-symmetry opened this issue Oct 9, 2019 · 8 comments
Closed
20 of 26 tasks

meta: Docker log driver plugin, explerimental to GA #13990

fearful-symmetry opened this issue Oct 9, 2019 · 8 comments
Assignees
Labels
containers Related to containers use case new beat Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team

Comments

@fearful-symmetry
Copy link
Contributor

fearful-symmetry commented Oct 9, 2019

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

  • ECS compliance and integration with Kibana Logs
  • Docker certification

Later

  • We need to make some kind of decision about how we'll drop events. If the plugin's FIFO queues get backed up, the container's writes to stdio will block.
  • Create an ingest pipeline manager to ingest documents based on container tags and names. This reduces the need for addtional config flags. Designing this with @urso .
  • Parsing of JSON messages
  • Multiline support
  • Can we get this to send its own logs / health data to ES?
  • some kind of integration test suite.
  • Update documentation in config.json

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.

@fearful-symmetry fearful-symmetry added new beat containers Related to containers use case Team:Integrations Label for the Integrations team labels Oct 9, 2019
@fearful-symmetry fearful-symmetry self-assigned this Oct 9, 2019
@andresrc
Copy link
Contributor

Given that this introduces a new artifact, we should also include here the integration in the build pipeline and the release process (/cc @exekias )

@Gavin89
Copy link

Gavin89 commented Oct 30, 2019

This would be a great addition, and would help push logs straight to ES from docker, without having to use Logstash.

@exekias
Copy link
Contributor

exekias commented Nov 11, 2019

I just saw the docker logs command part. That sounds a bit complex, perhaps we could move it to be done after the initial experimental release? cc @sorantis

@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-services (Team:Services)

@jlind23
Copy link
Collaborator

jlind23 commented Mar 31, 2022

@fearful-symmetry any chance you remember what we should do with this one?

@jlind23 jlind23 added Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team and removed [zube]: In Progress Team:Integrations Label for the Integrations team Team:Services (Deprecated) Label for the former Integrations-Services team labels Mar 31, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

@fearful-symmetry
Copy link
Contributor Author

@jlind23 it's technically GA, but heavily on the backburner, due to...everything going on, and also the extreme limitations of docker's plugin API.

@jlind23
Copy link
Collaborator

jlind23 commented Apr 1, 2022

@fearful-symmetry thanks, then i'll close this one :)

@jlind23 jlind23 closed this as completed Apr 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
containers Related to containers use case new beat Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team
Projects
None yet
Development

No branches or pull requests

6 participants