Editing Fluent Bit Kubernetes Filter

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
Kubernetes Filter depends on either [[tail]] or [[Systemd]] [[input plugins]] to process and enrich records with Kubernetes metadata
 
  
  
https://docs.fluentbit.io/manual/pipeline/filters/kubernetes#workflow-of-tail-+-kubernetes-filter
 
<pre>
 
[INPUT]
 
    Name    tail
 
    Tag    kube.*
 
    Path    /var/log/containers/*.log
 
    Parser  docker
 
  
[FILTER]
 
    Name            kubernetes
 
    Match            kube.*
 
    Kube_URL        https://kubernetes.default.svc:443
 
    Kube_CA_File    /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
 
    Kube_Token_File  /var/run/secrets/kubernetes.io/serviceaccount/token
 
    Kube_Tag_Prefix  kube.var.log.containers.
 
    Merge_Log        On
 
    Merge_Log_Key    log_processed
 
</pre>
 
  
  
== Default ==
+
{{Fluent Bit}}
* https://github.com/fluent/helm-charts/blob/main/charts/fluent-bit/values.yaml
 
* https://docs.fluentbit.io/manual/pipeline/filters/kubernetes
 
 
 
  ## https://docs.fluentbit.io/manual/pipeline/filters
 
  filters: |
 
    [FILTER]
 
        Name kubernetes
 
        Match kube.*
 
        Merge_Log On            # When enabled, it checks if the log field content is a JSON string map, if so, it append the map fields as part of the log structure.
 
        Keep_Log Off            # When Keep_Log is disabled, the log field is removed from the incoming message once it has been successfully merged (Merge_Log must be enabled as well).
 
        [[K8S-Logging.Parser]] On    # Allow Kubernetes Pods to suggest a pre-defined Parser
 
        [[K8S-Logging.Exclude]] On  # Allow Kubernetes Pods to exclude logs
 
 
 
== Other INPUT examples ==
 
* {{input tail}}
 
 
 
 
 
== Related ==
 
* <code>[warn] [filter] NO [[match rule]] for kubernetes.0 filter instance, unloading</code>
 
 
 
== See also ==
 
* {{Fluent Bit}}
 
 
 
[[Category:Fluent Bit]]
 

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Templates used on this page:

Advertising: