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

Collect logs from system namespaces #198

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

Schnitzel
Copy link
Contributor

We had a couple of cases where we really needed logs from system namespaces.
I'm not sure though if this is really the right way to do this. Basically we're sending many thousand of log entries to the elasticsearch which is also used by our customers.
If I would have time I probably would create a separate logging infrastructure for system logs from our clusters, but as we don't really have time I think the easiest right now is to just send them in the same place.
Any opinions @smlx ?

@smlx
Copy link
Member

smlx commented Jan 6, 2021

Here are some problems I see with doing this:

  • many system services are very verbose, this would add significant load on elasticsearch
  • fluentd currently looks for lagoon.sh/project labels and otherwise puts all logs into a catch-all index.
  • I'm not sure how well parsing will work, since these log formats have not been tested with the current fluent.conf

I agree that it would be much better to split these out to a different log sink. However that doesn't need to be elasticsearch and could be something much simpler since we don't need the multi-tenancy or the extra processing we currently do with fluentd in the logs-dispatcher. I've got some ideas for this 😄

Another thought: do we really need all these namespaces? one or two might be ok as a quick fix for your use-case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants