liveBook · Manning

FluentBitConfig

As explained in Logs and Telemetry

FluentBitConfig is a Fluent Operator custom resource for selecting namespace-level Fluent Bit input, output, and filter configurations.

FluentBitConfig is a Fluent Operator custom resource that selects namespace-level Fluent Bit input, filter, and output configurations. Its selectors assemble a dynamic configuration from separately defined resources. section 4.8

Configure the resource by combining:

  • Input and output resources following the conventions used by their cluster-level counterparts. section 4.8
Listing 4.10 Helm chart config: fluentbit_v1alpha2_fluentbitconfig.yaml
apiVersion: fluentbit.fluent.io/v1alpha2
kind: FluentBitConfig
metadata:
  name: fluentbitconfig-sample
spec:
  service:                         #1
    flush: 1
    daemon: false
    logLevel: info
    parsersFile: parsers.conf
  inputSelector:       #2
    matchExpressions:        #3
      - key: fluentbit.fluent.io/enabled
        operator: In
        values: ["true"]      #4
  filterSelector:           #5
    matchExpressions:       
      - key: fluentbit.fluent.io/enabled
        operator: In
        values: ["true"]
  outputSelector:
    matchExpressions:
      - key: fluentbit.fluent.io/enabled
        operator: In
        values: ["true"]

Use the sample manifest to inspect the service block and the three selector blocks that assemble the Fluent Bit configuration. section 4.8

How Logs and Telemetry covers it

How deep it goes
Defines service settings and label-based selectors, while deferring detailed plugin behavior to Input, Filter, Output, and Parser resources.
Examples
Uses enabled-label selectors plus sample tail input and Elasticsearch output resources.
What it assumes
Assumes familiarity with Kubernetes custom resources, labels, Fluent Bit, and separate Input, Filter, Output, and Parser resources.
What you can do after
Operate/configure namespace-scoped Fluent Bit pipelines by selecting labeled input, filter, and output resources.
How it connects
Connects Fluent Operator, Fluent Bit, Kubernetes, ClusterFluentBitConfig, Input, Filter, Output, Parser, and Helm.

This explainer was generated by Manning's knowledge graph from the text of Logs and Telemetry. The section links point to the parts of the book it draws on.