Skip to content

Commit 4da323f

Browse files
Merge pull request #2225 from fluent/alexakreizinger/sc-153842/consolidate-unit-sizes-into-configure-fluent
2 parents 2e9c9f1 + 4201748 commit 4da323f

File tree

17 files changed

+44
-209
lines changed

17 files changed

+44
-209
lines changed

.gitbook.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,4 @@ redirects:
101101
about/sandbox-and-lab-resources: ./about/resources.md
102102
installation/downloads/amazon-ec2: ./installation/downloads/linux/amazon-linux.md
103103
administration/configuring-fluent-bit/yaml/configuration-file: ./administration/configuring-fluent-bit/yaml.md
104+
administration/configuring-fluent-bit/unit-sizes: ./administration/configuring-fluent-bit.md#unit-sizes

SUMMARY.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
## Administration
3939

4040
* [Configure Fluent Bit](administration/configuring-fluent-bit.md)
41-
* [YAML configuration](administration/configuring-fluent-bit/yaml.md)
41+
* [YAML configuration files](administration/configuring-fluent-bit/yaml.md)
4242
* [Environment variables](administration/configuring-fluent-bit/yaml/environment-variables-section.md)
4343
* [Includes](administration/configuring-fluent-bit/yaml/includes-section.md)
4444
* [Service](administration/configuring-fluent-bit/yaml/service-section.md)
@@ -47,15 +47,14 @@
4747
* [Pipeline](administration/configuring-fluent-bit/yaml/pipeline-section.md)
4848
* [Plugins](administration/configuring-fluent-bit/yaml/plugins-section.md)
4949
* [Upstream servers](administration/configuring-fluent-bit/yaml/upstream-servers-section.md)
50-
* [Classic mode](administration/configuring-fluent-bit/classic-mode.md)
50+
* [Classic configuration files](administration/configuring-fluent-bit/classic-mode.md)
5151
* [Configuration file](administration/configuring-fluent-bit/classic-mode/configuration-file.md)
5252
* [Commands](administration/configuring-fluent-bit/classic-mode/commands.md)
5353
* [Format and schema](administration/configuring-fluent-bit/classic-mode/format-schema.md)
5454
* [Record accessor syntax](administration/configuring-fluent-bit/classic-mode/record-accessor.md)
5555
* [Upstream servers](administration/configuring-fluent-bit/classic-mode/upstream-servers.md)
5656
* [Variables](administration/configuring-fluent-bit/classic-mode/variables.md)
5757
* [Multiline parsing](administration/configuring-fluent-bit/multiline-parsing.md)
58-
* [Unit Sizes](administration/configuring-fluent-bit/unit-sizes.md)
5958
* [AWS credentials](administration/aws-credentials.md)
6059
* [Backpressure](administration/backpressure.md)
6160
* [Buffering and storage](administration/buffering-and-storage.md)
Lines changed: 17 additions & 168 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,26 @@
11
# Configure Fluent Bit
22

3-
Fluent Bit supports two configuration formats:
3+
Fluent Bit uses configuration files to store information about your specified [inputs](../data-pipeline/inputs.md), [outputs](../data-pipeline/outputs.md), [filters](../data-pipeline/filters.md), and more. You can write these configuration files in one of these formats:
44

5-
- [YAML](./configuring-fluent-bit/yaml.md): Standard configuration format as of v3.2.
6-
- [Classic mode](./configuring-fluent-bit/classic-mode.md): To be deprecated at the end of 2026.
5+
- [YAML configuration files](./configuring-fluent-bit/yaml.md) are the standard configuration format as of Fluent Bit v3.2. They use the `.yaml` file extension.
6+
- [Classic configuration files](./configuring-fluent-bit/classic-mode.md) will be deprecated at the end of 2026. They use the `.conf` file extension.
7+
8+
## Unit sizes
9+
10+
Some configuration settings in Fluent Bit use standardized unit sizes to define data and storage limits. For example, the `buffer_chunk_size` and `buffer_max_size` parameters for the [Tail](../data-pipeline/inputs/tail.md) input plugin use unit sizes.
11+
12+
The following table describes the unit sizes you can use and what they mean.
13+
14+
| Suffix | Description | Example |
15+
| :--- | :--- | :--- |
16+
| _none_ | **Bytes**: If you specify an integer without a unit size, Fluent Bit interprets that value as a bytes representation. | `32000` means 32,000 bytes. |
17+
| `k`, `kb`, `K`, `KB` | **Kilobytes**: A unit of memory equal to 1,000 bytes. | `32k` means 32,000 bytes. |
18+
| `m`, `mb`, `M`, `MB` | **Megabytes**: A unit of memory equal to 1,000,000 bytes. | `32m` means 32,000,000 bytes. |
19+
| `g`, `gb`, `G`, `GB` | **Gigabytes**: A unit of memory equal to 1,000,000,000 bytes. | `32g` means 32,000,000,000 bytes. |
720

821
## Command line interface
922

10-
Fluent Bit exposes most of it features through the command line interface. Running the `-h` option you can get a list of the options available:
23+
Fluent Bit exposes most of its configuration features through the command line interface. Use the `-h` or `--help` flag to see a list of available options.
1124

1225
```shell
1326
# Podman container tooling.
@@ -16,167 +29,3 @@ podman run -rm -ti fluent/fluent-bit --help
1629
# Docker container tooling.
1730
docker run --rm -it fluent/fluent-bit --help
1831
```
19-
20-
Which returns the following help text:
21-
22-
```text
23-
Usage: /fluent-bit/bin/fluent-bit [OPTION]
24-
25-
Available Options
26-
-b --storage_path=PATH specify a storage buffering path
27-
-c --config=FILE specify an optional configuration file
28-
-d, --daemon run Fluent Bit in background mode
29-
--supervisor run under a supervising parent process, uses "fork()" to execute child processes
30-
-D, --dry-run dry run
31-
-f, --flush=SECONDS flush timeout in seconds (default: 1)
32-
-C, --custom=CUSTOM enable a custom plugin
33-
-i, --input=INPUT set an input
34-
-F --filter=FILTER set a filter
35-
-m, --match=MATCH set plugin match, same as '-p match=abc'
36-
-o, --output=OUTPUT set an output
37-
-p, --prop="A=B" set plugin configuration property
38-
-R, --parser=FILE specify a parser configuration file
39-
-e, --plugin=FILE load an external plugin (shared lib)
40-
-l, --log_file=FILE write log info to a file
41-
-t, --tag=TAG set plugin tag, same as '-p tag=abc'
42-
-T, --sp-task=SQL define a stream processor task
43-
-v, --verbose increase logging verbosity (default: info)
44-
-Z, --enable-chunk-traceenable chunk tracing, it can be activated either through the http api or the command line
45-
--trace-input input to start tracing on startup.
46-
--trace-output output to use for tracing on startup.
47-
--trace-output-property set a property for output tracing on startup.
48-
--trace setup a trace pipeline on startup. Uses a single line, ie: "input=dummy.0 output=stdout output.format='json'"
49-
-w, --workdir set the working directory
50-
-H, --http enable monitoring HTTP server
51-
-P, --port set HTTP server TCP port (default: 2020)
52-
-s, --coro_stack_size set coroutines stack size in bytes (default: 24576)
53-
-q, --quiet quiet mode
54-
-S, --sosreport support report for Enterprise customers
55-
-Y, --enable-hot-reload enable for hot reloading
56-
-W, --disable-thread-safety-on-hot-reloadingdisable thread safety on hot reloading
57-
-V, --version show version number
58-
-h, --help print this help
59-
60-
Inputs
61-
blob Blob (binary) files
62-
cpu CPU Usage
63-
mem Memory Usage
64-
thermal Thermal
65-
kmsg Kernel Log Buffer
66-
proc Check Process health
67-
disk Diskstats
68-
systemd Systemd (Journal) reader
69-
netif Network Interface Usage
70-
docker Docker containers metrics
71-
docker_events Docker events
72-
podman_metrics Podman metrics
73-
process_exporter_metricsProcess Exporter Metrics (Prometheus Compatible)
74-
gpu_metrics GPU Metrics
75-
node_exporter_metrics Node Exporter Metrics (Prometheus Compatible)
76-
kubernetes_events Kubernetes Events
77-
kafka Kafka consumer input plugin
78-
fluentbit_metrics Fluent Bit internal metrics
79-
prometheus_scrape Scrape metrics from Prometheus Endpoint
80-
prometheus_textfile Read Prometheus metrics from text files
81-
tail Tail files
82-
dummy Generate dummy data
83-
head Head Input
84-
health Check TCP server health
85-
http HTTP
86-
collectd collectd input plugin
87-
statsd StatsD input plugin
88-
opentelemetry OpenTelemetry
89-
elasticsearch HTTP Endpoints for Elasticsearch (Bulk API)
90-
splunk Input plugin for Splunk HEC payloads
91-
prometheus_remote_write Prometheus Remote Write input
92-
event_type Event tests for input plugins
93-
nginx_metrics Nginx status metrics
94-
serial Serial input
95-
stdin Standard Input
96-
syslog Syslog
97-
udp UDP
98-
exec_wasi Exec WASI Input
99-
tcp TCP
100-
mqtt MQTT, listen for Publish messages
101-
forward Fluentd in-forward
102-
random Random
103-
104-
Processors
105-
content_modifier Modify the content of Logs, Metrics and Traces
106-
labels Modifies metrics labels
107-
metrics_selector select metrics by specified name
108-
opentelemetry_envelope Package log records inside an OpenTelemetry Logs schema
109-
sampling Sampling
110-
sql SQL processor
111-
112-
Filters
113-
alter_size Alter incoming chunk size
114-
aws Add AWS Metadata
115-
checklist Check records and flag them
116-
ecs Add AWS ECS Metadata
117-
record_modifier modify record
118-
sysinfo Filter for system info
119-
throttle Throttle messages using sliding window algorithm
120-
type_converter Data type converter
121-
kubernetes Filter to append Kubernetes metadata
122-
modify modify records by applying rules
123-
multiline Concatenate multiline messages
124-
nest nest events by specified field values
125-
parser Parse events
126-
expect Validate expected keys and values
127-
grep grep events by specified field values
128-
rewrite_tag Rewrite records tags
129-
log_to_metrics generate log derived metrics
130-
lua Lua Scripting Filter
131-
stdout Filter events to STDOUT
132-
geoip2 add geoip information to records
133-
nightfall scans records for sensitive content
134-
wasm WASM program filter
135-
136-
Outputs
137-
azure Send events to Azure HTTP Event Collector
138-
azure_blob Azure Blob Storage
139-
azure_logs_ingestion Send logs to Log Analytics with Log Ingestion API
140-
azure_kusto Send events to Kusto (Azure Data Explorer)
141-
bigquery Send events to BigQuery via streaming insert
142-
counter Records counter
143-
datadog Send events to DataDog HTTP Event Collector
144-
es Elasticsearch
145-
exit Exit after a number of flushes (test purposes)
146-
file Generate log file
147-
forward Forward (Fluentd protocol)
148-
http HTTP Output
149-
influxdb InfluxDB Time Series
150-
logdna LogDNA
151-
loki Loki
152-
kafka Kafka
153-
kafka-rest Kafka REST Proxy
154-
nats NATS Server
155-
nrlogs New Relic
156-
null Throws away events
157-
opensearch OpenSearch
158-
oracle_log_analytics Oracle log analytics
159-
plot Generate data file for GNU Plot
160-
pgsql PostgreSQL
161-
skywalking Send logs into log collector on SkyWalking OAP
162-
slack Send events to a Slack channel
163-
splunk Send events to Splunk HTTP Event Collector
164-
stackdriver Send events to Google Stackdriver Logging
165-
stdout Prints events to STDOUT
166-
syslog Syslog
167-
tcp TCP Output
168-
udp UDP Output
169-
td Treasure Data
170-
flowcounter FlowCounter
171-
gelf GELF Output
172-
websocket Websocket
173-
cloudwatch_logs Send logs to Amazon CloudWatch
174-
kinesis_firehose Send logs to Amazon Kinesis Firehose
175-
kinesis_streams Send logs to Amazon Kinesis Streams
176-
opentelemetry OpenTelemetry
177-
prometheus_exporter Prometheus Exporter
178-
prometheus_remote_write Prometheus remote write
179-
s3 Send to S3
180-
vivo_exporter Vivo Exporter
181-
chronicle Send logs to Google Chronicle as unstructured log
182-
```

administration/configuring-fluent-bit/classic-mode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Configure Fluent Bit using classic mode
1+
# Classic configuration files
22

33
{% hint style="info" %}
44
Fluent Bit classic mode configuration will be deprecated at the end of 2026.

administration/configuring-fluent-bit/security.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

administration/configuring-fluent-bit/unit-sizes.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

administration/configuring-fluent-bit/yaml.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# YAML configuration
1+
# YAML configuration files
22

33
<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=864c6f0e-8977-4838-8772-84416943548e" />
44

pipeline/filters/kubernetes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The plugin supports the following configuration parameters:
2525

2626
| Key | Description | Default |
2727
| :--- | :--- | :--- |
28-
| `Buffer_Size` | Set the buffer size for HTTP client when reading responses from Kubernetes API server. The value must conform to the [unit size](../../administration/configuring-fluent-bit/unit-sizes.md) specification. A value of `0` results in no limit, and the buffer will expand as-needed. If pod specifications exceed the buffer limit, the API response is discarded when retrieving metadata, and some Kubernetes metadata will fail to be injected to the logs. | `32k` |
28+
| `Buffer_Size` | Set the buffer size for HTTP client when reading responses from Kubernetes API server. The value must conform to the [unit size](../../administration/configuring-fluent-bit.md#unit-sizes) specification. A value of `0` results in no limit, and the buffer will expand as-needed. If pod specifications exceed the buffer limit, the API response is discarded when retrieving metadata, and some Kubernetes metadata will fail to be injected to the logs. | `32k` |
2929
| `Kube_URL` | API Server endpoint | `https://kubernetes.default.svc:443` |
3030
| `Kube_CA_File` | CA certificate file | `/var/run/secrets/kubernetes.io/serviceaccount/ca.crt` |
3131
| `Kube_CA_Path` | Absolute path to scan for certificate files | _none_ |

pipeline/filters/wasm.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ The plugin supports the following configuration parameters:
2222
| `Event_Format` | Define event format to interact with Wasm programs: `msgpack` or `json`. Default: `json`. |
2323
| `Function_Name` | Wasm function name that will be triggered to do filtering. It's assumed that the function is built inside the Wasm program specified previously. |
2424
| `Accessible_Paths` | Specify the allowlist of paths to be able to access paths from Wasm programs. |
25-
| `Wasm_Heap_Size` | Size of the heap size of Wasm execution. Review [unit sizes](../../administration/configuring-fluent-bit/unit-sizes.md) for allowed values. |
26-
| `Wasm_Stack_Size` | Size of the stack size of Wasm execution. Review [unit sizes](../../administration/configuring-fluent-bit/unit-sizes.md) for allowed values. |
25+
| `Wasm_Heap_Size` | Size of the heap size of Wasm execution. Review [unit sizes](../../administration/configuring-fluent-bit.md#unit-sizes) for allowed values. |
26+
| `Wasm_Stack_Size` | Size of the stack size of Wasm execution. Review [unit sizes](../../administration/configuring-fluent-bit.md#unit-sizes) for allowed values. |
2727

2828
## Configuration example
2929

@@ -46,7 +46,7 @@ pipeline:
4646
function_name: filter_function_name
4747
# Note: run Fluent Bit from the 'wasm_path' location.
4848
accessible_paths: /path/to/accessible
49-
49+
5050
outputs:
5151
- name: stdout
5252
match: '*'
@@ -74,4 +74,4 @@ pipeline:
7474
```
7575

7676
{% endtab %}
77-
{% endtabs %}
77+
{% endtabs %}

0 commit comments

Comments
 (0)