Coder Social home page Coder Social logo

Comments (8)

frankreno avatar frankreno commented on August 19, 2024

@mfornasa :There are multiple ways to filter the data. if you want to do it at the source.kubernetes.conf, you would need to use the fluentd tail plugin option, exclude_path, which I believe does not accept regex. You can also use some environment variables to specify a regex pattern to exclude by host, pod, namespace or container. This is documented in the README in the options section. Does this not meet your requirement?

from fluentd-kubernetes-sumologic.

mfornasa avatar mfornasa commented on August 19, 2024

@frankreno my understanding is that all the EXCLUDE options operate only on containers that are collected trough source.containers.conf.

The problem here is with a Kubernetes component called kube-apiserver which is explicitly collected trough source.kubernetes.conf (in this line). So, I don't see a way to exclude logs from kube-apiserver using EXCLUDE directives.

This is a generic problem, as kube-apiserver is installed part of Kubernbetes.

from fluentd-kubernetes-sumologic.

frankreno avatar frankreno commented on August 19, 2024

@mfornasa : My apologies, I see now. So we need to expose the environment variables in the source.kubernetes.conf and that should then give you this capability. I will look at this as soon as I can.

from fluentd-kubernetes-sumologic.

mfornasa avatar mfornasa commented on August 19, 2024

Any news on this?

from fluentd-kubernetes-sumologic.

frankreno avatar frankreno commented on August 19, 2024

@mfornasa : I have not had any cycles to work on this and may not for a couple of weeks. However, I am open to a PR. We should be be able to use a similar flow to that was done for the source.containers.conf in most cases. Some may require some more work.

from fluentd-kubernetes-sumologic.

frankreno avatar frankreno commented on August 19, 2024

@mfornasa : i will update when this is in our docker hub.

from fluentd-kubernetes-sumologic.

frankreno avatar frankreno commented on August 19, 2024

@mfornasa: The image with the fix for this is now in docker hub. Thanks for your help @flah00!

from fluentd-kubernetes-sumologic.

mfornasa avatar mfornasa commented on August 19, 2024

Tried:

   - name: EXCLUDE_PATH
          value: "/mnt/log/kube-apiserver.log"

Seems good. Thanks.

from fluentd-kubernetes-sumologic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.