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

Docker logging plugin #10047

Closed
exekias opened this issue Jul 5, 2018 · 5 comments
Closed

Docker logging plugin #10047

exekias opened this issue Jul 5, 2018 · 5 comments
Assignees
Labels
enhancement in progress Pull request is currently in progress. new beat Team:Integrations Label for the Integrations team

Comments

@exekias
Copy link
Contributor

exekias commented Jul 5, 2018

We aim to provide an official logging plugin for Docker, and push it here: https://store.docker.com/search?type=plugin&category=logging

We don't need to name it Filebeat, but internally it would use most of Filebeat internals. For the initial version it should be able to:

  • Retrieve Docker logs
  • Include metadata using the same fields as add_docker_metadata
  • Make use of spooling to support (short) ES outages
  • Allow to have the same experience with hints as with Filebeat

Non-goals for the first version that are interesting for the future:

  • Add capability to read logs back in (from ES or the spooling itself), used by docker logs command

Some initial works for it can be found here: https://github.com/elastic/beats/compare/master...exekias:filebeat-docker-plugin?expand=1

@exekias exekias self-assigned this Jul 6, 2018
@drewr
Copy link

drewr commented Jul 6, 2018

Love it!

👋 @elastic/infra

@ruflin ruflin transferred this issue from another repository Jan 14, 2019
@exekias exekias added in progress Pull request is currently in progress. new beat enhancement labels Jan 14, 2019
@hholst80
Copy link

hholst80 commented Apr 6, 2019

Which log driver do you intend to support? Only the json-file driver? Or will any driver that allows logs to be replayed via the Docker API be supported? Sorry I misunderstood this. You want to provide a new log driver for Docker that emits data to ES directly, correct?

@ruflin ruflin added the Team:Integrations Label for the Integrations team label Apr 8, 2019
@exekias
Copy link
Contributor Author

exekias commented Apr 8, 2019

Hi @hholst80, yes, this would be deployed into docker as a logging plugin and sends logs directly to ES

@fearful-symmetry
Copy link
Contributor

Hey folks. Talked with @exekias about this for a while, and I'd like to pick this back up, since it's a request from cloud and others.

I'm leaning towards the idea of a new beat (in the beats repo, along with everything else), since it would be a good way to dogfood our newbeat dev process, and also because there's no reason I see not to ship a light-weight specialized thing, as opposed to "a whole filebeat." Plugins are normally deployed with (more or less) a single docker plugin command, so this needs to be a fairly simple utility with little need for additional user tweaking.

After Talking with Carlos, it seems that plugins are just a 'weird container' but the build and deployment system is a bit odd, so we can also avoid cluttering up the filebeats directory with additional tooling, and also simplify the deployment process if we have a specialized beat with less knobs to tweak.

Does anyone else here have strong feelings? My one worry with making a new beat is well, we already have a lot, but things like heartbeat/winlogbeat are already 'small and specialized' to some extent.

I'd like to get started with this and pick up where Carlos left off.

@fearful-symmetry
Copy link
Contributor

Continued by #13990

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement in progress Pull request is currently in progress. new beat Team:Integrations Label for the Integrations team
Projects
None yet
Development

No branches or pull requests

6 participants