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
developmentsqlnodeexpresskubernetesawsapibackendsecurity

Works with

  • cursor
  • 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/badge)](https://www.skillsdirectory.com/skills/nevaberry-fluent-bit-knowledge-patch)

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

Load this skill when upgrading Fluent Bit or working on ingestion, routing,
processors, output integrations, authentication, configuration, or monitoring.
Use the quick references below for compatibility changes and common settings.
The topic references contain the full guidance, examples, and version attributions.

## Reference index

| Reference | Topics |
| --- | --- |
| [Inputs and ingestion](references/inputs-and-ingestion.md) | HTTP listeners, OTLP decoding, Tail, multiline, TCP/UDP, Syslog, Forward, MQTT, Windows events, journal namespaces, Kubernetes event cursors |
| [Operations and observability](references/operations-and-observability.md) | Health, internal logs, pipeline metrics, platform collectors, lifecycle, hot reload, packages, builds, experimental Zig plugins and browser SDK |
| [Outputs and cloud services](references/outputs-and-cloud-services.md) | Forward compatibility, compression, export limits, S3, GCS, cloud destinations, Splunk, Loki, InfluxDB, Elasticsearch, Kafka, Vivo, throttling |
| [Routing, processing, and storage](references/routing-processing-and-storage.md) | Direct routes, dead letter queue, emitter backpressure, retagging, sampling, metric conversion, typed policies, SQL, filter behavior, Kubernetes enrichment |
| [Security and configuration](references/security-and-configuration.md) | TLS, OAuth 2.0, Secure Forward, SigV4, YAML variables and generation, JSON serialization, keepalive |

## Breaking changes and upgrade compatibility

### Forward metadata and Fluentd receivers

Starting in 5.0.4, the `forward` output defaults
`retain_metadata_in_forward_mode` to `true`. This 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.
Configure a shared key when setting a username and password on a `forward` output.

### Filesystem emitter backpressure

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. `rewrite_tag` keeps the original record when
emitter backpressure or an enqueue error prevents retagging.

### Metrics, queries, and validation changes

- `fluentbit_hot_reloaded_times` changed from a gauge to a counter. Use counter
  functions such as PromQL `rate()` or `increase()` in dashboards and alerts.
- `windows_exporter_metrics` aligns Prometheus metric names with upstream
  `windows_exporter`. Check names used by existing queries and alerts when upgrading.
- Update scrapers of the Vivo exporter's internal metrics to use
  `/api/v1/internal/metrics`.
- The stream processor corrects logical operator precedence in SQL expressions
  in 5.1.4. Review queries combining `AND` and `OR`; use parentheses for explicit grouping.
- OpenTelemetry decoding applies stricter validation to log and trace IDs.
- The `modify` filter rejects rules with more arguments than the operation accepts.

### Packages and older configuration migrations

- Switch from `td-agent-bit` to `fluent-bit` when upgrading past 1.9.9.
- 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 either plugin there.
- Fluent Bit 2.0 removes mbedTLS support. If a source build linked against
  mbedTLS, link it against OpenSSL when upgrading.
- Rename `keepalive` to `net.keepalive` when upgrading to 1.5; network I/O
  keepalive is 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.
- The `stackdriver` monitored resource's `project_id` switches to the project ID
  string in 1.6. Update Cloud Logging queries filtering on the old numeric project number.

## Routing, processors, and record retention

### Direct routes and invalid chunks

YAML configurations can route inputs directly to selected outputs. Log routes
can evaluate conditions using context variables; 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 also apply to pipelines containing only one input and one output.
The dead letter queue preserves invalid chunks, including filesystem-backed
chunks; its data in the storage backlog survives restarts for inspection.

### Conditional log processing

A log processor can use `condition` with `AND` or `OR` and field operators
including `eq`, `in`, `gt`, `lt`, and `regex`. Attach this block to a YAML input
to insert `priority: high` into 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. `legacy_reconcile` lets
tail-sampling users compare the previous behavior with the optimized reconciler.

The cumulative-to-delta processor converts cumulative monotonic metrics into
delta values for a backend that expects deltas. It also supports exponential
histograms. A topological data analysis processor is available for metrics.

### Typed policies and filter behavior

The `fts` processor supports reusable typed policy packs, decoding JSON fields,
and unpacking log bodies. LuaLS definitions and a JSON API export support authoring
and tooling. Use `journald_otel` to turn journald entries into OpenTelemetry logs.

The `sql` processor preserves resource and scope groups when filtering logs.
`rewrite_tag` preserves record metadata when re-emitting with a new tag and
supports opt-in input processor batching. `record_modifier` drops a batch when
its rules remove all fields. With protected callbacks enabled, `lua` isolates a
callback error to the triggering record and continues the rest of the batch.

## Ingestion and authentication

### Shared HTTP listeners

The `http`, `splunk`, `elasticsearch`, `opentelemetry`, and
`prometheus_remote_write` inputs share `http_server.*` settings for `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
if a client, reverse proxy, or load balancer has trouble with HTTP/2.

### TLS and OAuth 2.0

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.
Use `tls.crl_file` in a TLS-enabled plugin to check revocation against a local
certificate revocation list.

Inputs including `http` and `opentelemetry` can validate incoming bearer tokens
with `oauth2.validate`, `oauth2.issuer`, and `oauth2.jwks_url`.
`oauth2.allowed_audience`, `oauth2.allowed_clients`, and
`oauth2.jwks_refresh_interval` configure audiences, clients, and key refreshes.
These two inputs can configure JWKS retrieval buffer size and limit; JWKS
requests enforce connection and response deadlines.

Set `oauth2.enable on` on the `http` output for client-credentials token acquisition;
it supports `basic`, `post`, and `private_key_jwt` client authentication.
The `opentelemetry` output supports AWS Signature Version 4 request authentication.

### File ingestion and multiline parsing

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.
Tail can transcode Unicode log files and truncate overlong lines to 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` parsers.
A built-in multiline parser handles JSON objects spanning multiple lines.

## Configuration and monitoring shortcuts

A YAML `env` value beginning with `file://` loads the variable from a file;
reference it as `${TOKEN}` elsewhere in the configuration:

```yaml
env:
  TOKEN: file://mysecret.txt
```

Fluent Bit can generate reusable YAML configuration from command-line options.
All plugins emitting JSON honor `escape_unicode` when serializing strings.

The monitoring server's `/api/v2/health` returns JSON with HTTP `200` when
healthy or `500` when unhealthy. The `http` input can serve an optional
`GET /health` on its ingestion listener for readiness probes. Add
`- name: fluentbit_logs` to the YAML input list to route internal logs as
structured records. `/metrics` includes routing metrics for matched and
unmatched logs and dropped events.

Zig plugins are experimental and disabled by default; enable support when
building Fluent Bit. The experimental WebAssembly SDK runs pipelines in the
browser, supports Fluent Typed Scripting, and can drain the local pipeline.
In 5.2.1, the SDK can also accept OTLP metrics and traces and report routing decisions.

Files in this skill

  • SKILL.md9.5 KB
  • coverage.json1015 B
  • references/inputs-and-ingestion.md5.8 KB
  • references/operations-and-observability.md2.9 KB
  • references/outputs-and-cloud-services.md3.7 KB
  • references/routing-processing-and-storage.md4.8 KB
  • references/security-and-configuration.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.