Skip to content
Back to skills

Fluent Bit Knowledge Patch

ASecurity

Fluent Bit

  • 25 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 5, 2026
developmentsqlnodeexpresskubernetesapibackendsecurity

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill fluent-bit-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fluent Bit Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Fluent Bit Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-fluent-bit-knowledge-patch-nevaberry-plugins/badge)](https://www.skillsdirectory.com/skills/nevaberry-fluent-bit-knowledge-patch-nevaberry-plugins)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: fluent-bit-knowledge-patch
description: Fluent Bit
version: "5.2.1"
license: MIT
metadata:
  author: Nevaberry
---


# Fluent Bit knowledge patch

Load this skill when configuring, upgrading, or troubleshooting Fluent Bit
inputs, processing, routing, outputs, security, storage, and monitoring.
Use the quick reference below for common compatibility changes and configuration
tasks. Follow the topic references for complete guidance and examples.

## Reference index

| Reference | Topics |
| --- | --- |
| [Inputs, Parsing, and Enrichment](references/inputs-and-enrichment.md) | HTTP and OpenTelemetry ingestion, Tail, multiline parsing, Windows events, Kubernetes enrichment, host metrics |
| [Outputs and Integrations](references/outputs-and-integrations.md) | Forward, HTTP, telemetry export, cloud storage, Kafka, analytics services, Vivo, output controls |
| [Processing and Routing](references/processing-and-routing.md) | Direct routes, conditions, labels, sampling, metric transforms, SQL, typed policies, retagging, browser SDK |
| [Security, Configuration, and Lifecycle](references/security-and-configuration.md) | Shared listeners, TLS, OAuth, YAML, packages, source builds, supervision, hot reload |
| [Storage, Reliability, and Observability](references/storage-reliability-and-observability.md) | Dead letter queue, emitter and uploader backpressure, health, latency, routing and accounting metrics |

## Compatibility and upgrade changes

### Forward metadata and Fluentd

Starting in 5.0.4, the `forward` output defaults
`retain_metadata_in_forward_mode` to `true`, which embeds event metadata in an
extended MessagePack payload that Fluentd receivers reject. Set it to `false`
when sending to Fluentd.

```yaml
pipeline:
  outputs:
    - name: forward
      match: "*"
      host: fluentd-host
      port: 24224
      retain_metadata_in_forward_mode: false
```

The option is also honored in an upstream node's configuration, allowing
metadata retention to be set for each destination.

### Emitter backpressure and record retention

For filesystem-backed emitters such as those used by `rewrite_tag`,
`storage.pause_on_chunks_overlimit` now defaults to on, pausing the emitter at
`storage.max_chunks_up`. To preserve the previous behavior, explicitly set
`storage.pause_on_chunks_overlimit off` on the relevant input.

The emitter counts pending queued bytes toward `mem_buf_limit` and retains
buffered records while paused. The `rewrite_tag` filter keeps the original
record when emitter backpressure or an enqueue error prevents retagging.

### Metrics, SQL, and filter behavior

- `fluentbit_hot_reloaded_times` changed from a gauge to a counter. Use counter
  functions such as PromQL `rate()` or `increase()` in dashboards and alerts.
- The `windows_exporter_metrics` input aligns its Prometheus metric names with
  upstream `windows_exporter`. Check existing queries and alerts when upgrading.
- In 5.1.4, the stream processor corrects logical operator precedence in SQL
  expressions. Review queries combining `AND` and `OR`; use parentheses to make
  the intended grouping explicit.
- The `modify` filter rejects rules with more arguments than the operation
  accepts. The `record_modifier` filter drops a batch when its rules remove all
  fields.
- With protected callbacks enabled, the `lua` filter isolates a callback error
  to the triggering record and continues processing the rest of the batch.

### Package, TLS, and older configuration migrations

- Switch from `td-agent-bit` to `fluent-bit` when upgrading past 1.9.9.
- Fluent Bit 2.0 removes mbedTLS support. If a source build linked against
  mbedTLS, link it against OpenSSL when upgrading.
- Fluent Bit 4.0 drops official Ubuntu 16.04, 18.04, and 20.04 binary packages.
  Upgrade the OS or build Fluent Bit from source.
- In 4.0, official packages for CentOS 7 and ARM64 Amazon Linux 2 disable both
  Kafka plugins. Build from source against a `librdkafka` version compatible
  with the platform's glibc to use Kafka on those platforms.
- Rename `keepalive` to `net.keepalive` when upgrading to 1.5. Network I/O
  keepalive is now enabled by default.
- The `es` output changes its default `type` from `flb_type` to `_doc` in 1.5.
  Elasticsearch 5.6 through 6.1 require a type without a leading underscore;
  set `type flb_type` explicitly for those versions.
- Update scrapers of the Vivo exporter's internal metrics to use
  `/api/v1/internal/metrics` in 4.2.

## HTTP ingestion, authentication, and health

The `http`, `splunk`, `elasticsearch`, `opentelemetry`, and
`prometheus_remote_write` inputs share `http_server.*` settings: `http2`,
`buffer_chunk_size`, `buffer_max_size`, `max_connections`, `workers`,
`ingress_queue_event_limit`, and `ingress_queue_byte_limit`. Legacy per-plugin
names such as `http2`, `buffer_chunk_size`, and `buffer_max_size` remain aliases.

```yaml
pipeline:
  inputs:
    - name: http
      http_server.workers: 2
      http_server.max_connections: 128
```

The `opentelemetry`, `splunk`, `elasticsearch`, and `http` inputs accept both
HTTP/1.1 and HTTP/2 by default from 3.0. Set `http2 off` in the affected input
section if a client, reverse proxy, or load balancer has trouble with HTTP/2.

- On a TLS-enabled input configured with `tls.crt_file` and `tls.key_file`, set
  `tls.verify_client_cert on` to require and validate the sender's certificate.
- Inputs including `http` and `opentelemetry` can validate incoming bearer tokens
  with `oauth2.validate`, `oauth2.issuer`, and `oauth2.jwks_url`. Use
  `oauth2.allowed_audience`, `oauth2.allowed_clients`, and
  `oauth2.jwks_refresh_interval` for accepted audiences, clients, and key refresh.
- Set `tls.crl_file` in a TLS-enabled plugin's configuration to check certificate
  revocation against a local certificate revocation list.
- The `http` input can serve an optional `GET /health` endpoint on its ingestion
  listener for load balancer or orchestrator readiness probes.
- The built-in monitoring server's `/api/v2/health` returns JSON and HTTP `200`
  when healthy or `500` when unhealthy.

## Processing and routing

### Direct routes

YAML configurations can route inputs directly to selected outputs. Log routes
can evaluate conditions using context variables; route matching can use labels
and plugin names from chunk metadata. Direct routes survive chunk restores and
configuration reloads.

A route applies to the specific input section that defines it, preventing
cross-routing when inputs share a plugin name or omit aliases. Configured input
routes apply even with only one input and one output.

### Conditional log processing

A log processor can use `condition` to select records, combining rules with
`AND` or `OR` and field operators such as `eq`, `in`, `gt`, `lt`, and `regex`.
This block attaches to a YAML input and adds `priority: high` to error records.

```yaml
processors:
  logs:
    - name: content_modifier
      condition:
        operator: AND
        rules:
          - field: '$log["level"]'
            operator: eq
            value: error
      action: insert
      context: log_body
      key: priority
      value: high
```

### Sampling and metric conversion

Under an input's `processors.traces`, configure `sampling` with `type: head`
for probabilistic sampling by percentage or `type: tail` to evaluate collected
spans. Tail sampling supports status code, latency, string, numeric, and boolean
attributes, span count, and trace state conditions. Its `legacy_reconcile` option
lets users compare the previous reconciliation behavior with the optimized
reconciler during upgrades.

Use the cumulative-to-delta processor to convert cumulative monotonic metrics
into delta values before sending them to a backend that expects deltas. It also
supports exponential histograms.

### Typed policies and browser pipelines

The `fts` processor supports reusable typed policy packs, decoding JSON fields,
and unpacking log bodies. LuaLS definitions and a JSON API export are available
for policy authoring and tooling.

The experimental WebAssembly SDK runs Fluent Bit pipelines in the browser,
supports Fluent Typed Scripting, and can drain the local pipeline. In 5.2.1, it
can also accept OTLP metrics and traces and report routing decisions.

## Ingestion and output quick reference

- By default, `tail` starts at the end of files found at startup and reads files
  discovered later, including after rotation, from the beginning. Set
  `read_from_head` to `true` to read existing files from the beginning at startup.
- The `tail` input can truncate overlong lines and ingest the portion that fits.
  Multiline parsing can truncate a buffered record at a size limit;
  `multiline_buffer_limit` is enforced for `EQ` and `ENDSWITH` multiline parsers.
- A built-in multiline parser handles JSON objects spanning multiple lines.
  The `tcp` and `udp` inputs can apply a parser to each line-delimited record.
- The `opentelemetry` input accepts OTLP JSON traces and compressed gRPC messages,
  with a maximum gRPC message size of 16 MB. It supports stable metrics ingestion
  in OTLP/HTTP JSON and preserves signed 64-bit integers in log bodies.
- Add `- name: fluentbit_logs` to the YAML input list to route internal logs as
  structured records. The `kubernetes` filter can enrich these from local
  Kubernetes metadata; set `kube_namespace_file` for a custom namespace-file path.
- The `http` output can send records using HTTP `PUT` and `PATCH`. Set
  `oauth2.enable on` for client-credentials token acquisition, with `basic`,
  `post`, or `private_key_jwt` client authentication.
- The `gcs` output supports Application Default Credentials and Workload Identity
  Federation. Set `unify_tag` to buffer all tags matched by that output into the
  same file; use `total_file_size` to set the size of files buffered for upload.
- The `influxdb` output reads `tag_keys` as one string of space-separated record
  keys. Set `time_key` in `splunk` to the field providing the HEC event timestamp.

## Storage and operational signals

The dead letter queue preserves invalid chunks, including filesystem-backed
chunks, for later inspection. Its data in the storage backlog survives restarts.
The `s3` output persists uploader cooldowns and propagates backpressure from its
spool.

Output metrics include a chunk-latency histogram and backpressure duration
metrics. The `/metrics` endpoint includes routing metrics for matched and
unmatched logs and dropped events. More accurate accounting for S3 logical
records, grouped logs, retries, and routed traffic can affect comparisons with
counts from earlier versions.

Files in this skill

  • SKILL.md8.8 KB
  • coverage.json1014 B
  • references/inputs-and-enrichment.md5.9 KB
  • references/outputs-and-integrations.md3.4 KB
  • references/processing-and-routing.md3.4 KB
  • references/security-and-configuration.md3.4 KB
  • references/storage-reliability-and-observability.md3.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.