liveBook · Manning

Classic configuration format

As explained in Logs and Telemetry

The classic configuration format is Fluent Bit's section-based configuration notation using directives such as [SERVICE], [INPUT], [FILTER], and [OUTPUT].

The classic configuration format is Fluent Bit’s section-based notation for defining services, inputs, filters, and outputs. It resembles a Fluentd configuration file and remains important for compatibility with Fluent Bit’s established install base, although YAML is becoming the preferred direction for newer features. section 2.2 section 2.2.2

Use these rules when writing a classic-format file:

  • Place section directives such as [SERVICE], [INPUT], [FILTER], and [OUTPUT] at the left margin; declaration case is insignificant. section 2.2.2
  • Indent each section property consistently, using spaces rather than placing the property and value on separate lines. section 2.2.2
  • Repeat [INPUT] or [OUTPUT] blocks to define multiple sources or destinations, and assign tags or output formats as needed. section 2.2.2

Minimal classic-format pipeline

A small configuration can emit dummy records to standard output: [service] flush 1 [input] name dummy dummy {"hello":"my world"} tag dummy1 [output] match * name stdout Run it with `fluent-bit -c hello-world.conf`. The same pipeline can be represented in YAML, but classic notation keeps the service, input, and output blocks visually direct.

How Logs and Telemetry covers it

How deep it goes
Defines section placement, indentation, casing, property formatting, and repeated blocks through runnable pipeline examples.
Examples
Uses dummy inputs, stdout outputs, tags, multiple blocks, and JSON output formatting in small configuration listings.
What you can do after
Operate Fluent Bit with a classic configuration file that generates, routes, and prints test records.
How it connects
Connects Fluent Bit configuration with Fluentd notation, YAML, Kubernetes, and CNCF cloud-native tooling.

Related concepts

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.