Giter Club home page Giter Club logo

Comments (4)

albertvaka avatar albertvaka commented on May 24, 2024 5

Thanks a lot! I found the tag for the spammy container to follow the pattern kubernetes.var.log.containers.my-spammy-container**, so I'm matching that now :)

Closing the issue!

from fluent-plugin-kubernetes_metadata_filter.

ewolinetz avatar ewolinetz commented on May 24, 2024 2

your match statement would be done using wildcard expansion.
If "my_super_spammy_deployment" was a namespace it would be something like:

<match **_spammynamespace_**>
  @type null
</match>

** will match anything (including delimiters)
* will not include delimiters

Hope that helps

from fluent-plugin-kubernetes_metadata_filter.

albertvaka avatar albertvaka commented on May 24, 2024

Will that match any key, though? That could lead to false positives (eg: a log line like The user 'my user name is spammynamespace' has logged in to my awesome service would match). I know exactly which field I would like to match against, can't I specify that somehow?

from fluent-plugin-kubernetes_metadata_filter.

ewolinetz avatar ewolinetz commented on May 24, 2024

That match is only performed on the record's tag [1] not the contents of the log message itself. The tag is based on the kubernetes pod information that includes the namespace, pod name, and container id.

[1] https://docs.fluentd.org/v0.12/articles/config-file#2-ldquomatchrdquo-tell-fluentd-what-to-do

from fluent-plugin-kubernetes_metadata_filter.

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.