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

Feature: Per namespace elastic + filebeat? #2515

Closed
KlavsKlavsen opened this issue Feb 4, 2020 · 5 comments
Closed

Feature: Per namespace elastic + filebeat? #2515

KlavsKlavsen opened this issue Feb 4, 2020 · 5 comments
Labels
>feature Adds or discusses adding a feature to the product

Comments

@KlavsKlavsen
Copy link

Hi guys,

Loving this ECK.. I would like to setup an elastic instance per-namespace (as we give each team their own namespace) - so they can have their own setup - isolated from other teams.

That works fine for elastic+kibana..
But the filebeat example you have - reads in from ALL containers on host.. it would be really nice if there could be some way to have a single filebeat instance (as your example yaml sets up) - which then can filter based on which namespace the pod belongs to - and direct logs to the correct elastic instance)

To avoid teams logs bothering each other - and avoiding all the complexity (and possible flaws) - in having a central elastic search with filtering for each team - so they only see their own nodes..

@david-kow
Copy link
Contributor

Hi @KlavsKlavsen, thanks for your feature request.

Since a single Filebeat can't be configured to have multiple outputs this is not easy to set up. I didn't have an opportunity to test the below, but two options I can think of right now is to either:

  • Deploy Filebeat as a sidecar in each Pod and either mount the appropriate log file from the host or write to file inside the Pod.
  • Deploy one Filebeat DaemonSet per namespace and use autodiscovery to pin each DeamonSet to a single namespace.

We are currently exploring if this kind of scenario is something that ECK could help solve.

@KlavsKlavsen
Copy link
Author

Thanks @david-kow
My current plan is to setup 1 instance of filebeat to pull all logs and push to a kafka (for sysadmins only).. it would be nice if kafka output supported splitting to a topic per namespace f.ex..

And then I'll set up 1 instance of filebeat per team namespace - where I hope that I can filter on a hardcoded namespace name - so the ES in that namespace (which will be the output for this filebeat) - only will get logs from containers in that teams namespace.

@pebrc pebrc added the >feature Adds or discusses adding a feature to the product label Mar 16, 2020
@anyasabo
Copy link
Contributor

anyasabo commented Apr 2, 2020

Closing as this will be tracked in #2417

@anyasabo anyasabo closed this as completed Apr 2, 2020
@kfox1111
Copy link

kfox1111 commented Apr 2, 2020

Is that the right url? I can't seem to see it. 404. Permission issue?

@anyasabo
Copy link
Contributor

anyasabo commented Apr 2, 2020

Woops, I put in the wrong link. Corrected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>feature Adds or discusses adding a feature to the product
Projects
None yet
Development

No branches or pull requests

5 participants