You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: administration/aws-credentials.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,11 +23,11 @@ The shared settings evaluate in the following order:
23
23
| Setting | File | Description |
24
24
|---|---|---|
25
25
|`credential_process`|`config`| Linux only. See [Sourcing credentials with an external process in the AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sourcing-external.html). |
26
-
|`aws_access_key_id`<br />`aws_secret_access_key`<br />`aws_session_token`|`credentials`| Access key ID and secret key to use to authenticate. The session token must be set for temporary credentials. |
26
+
|`aws_access_key_id`, `aws_secret_access_key`, `aws_session_token`|`credentials`| Access key ID and secret key to use to authenticate. The session token must be set for temporary credentials. |
27
27
28
28
No other settings are supported.
29
29
30
-
## EKS Web Identity Token (OIDC)
30
+
## EKS web identity token (OIDC)
31
31
32
32
Credentials are fetched using a signed web identity token for a Kubernetes service account. See [IAM roles for service accounts](https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html).
Copy file name to clipboardExpand all lines: administration/buffering-and-storage.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,7 +105,7 @@ Fluent Bit controls the number of chunks that are `up` in memory by using the fi
105
105
106
106
By default, the engine allows a total of 128 chunks `up` in memory in total, considering all chunks. This value is controlled by the service property `storage.max_chunks_up`. The active chunks that are `up` are ready for delivery and are still receiving records. Any other remaining chunk is in a `down` state, which means that it's only in the filesystem and won't be `up` in memory unless it's ready to be delivered. Chunks are never much larger than 2 MB, so with the default `storage.max_chunks_up` value of 128, each input is limited to roughly 256 MB of memory.
107
107
108
-
If the input plugin has enabled `storage.type` as `filesystem`, when reaching the `storage.max_chunks_up` threshold, instead of the plugin being paused, all new data will go to chunks that are `down` in the filesystem. This lets you control memory usage by the service and also provides a guarantee that the service won't lose any data. By default, the enforcement of the `storage.max_chunks_up` limit is best-effort. Fluent Bit can only append new data to chunks that are `up`. When the limit is reached chunks will be temporarily brought `up` in memory to ingest new data, and then put to a `down` state afterwards. In general, Fluent Bit works to keep the total number of `up` chunks at or below`storage.max_chunks_up`.
108
+
If the input plugin has enabled `storage.type` as `filesystem`, when reaching the `storage.max_chunks_up` threshold, instead of the plugin being paused, all new data will go to chunks that are `down` in the filesystem. This lets you control memory usage by the service and also provides a guarantee that the service won't lose any data. By default, the enforcement of the `storage.max_chunks_up` limit is best-effort. Fluent Bit can only append new data to chunks that are `up`. When the limit is reached chunks will be temporarily brought `up` in memory to ingest new data, and then put to a `down` state afterwards. In general, Fluent Bit works to keep the total number of `up` chunks at or under`storage.max_chunks_up`.
109
109
110
110
If `storage.pause_on_chunks_overlimit` is enabled (default is off), the input plugin pauses upon exceeding `storage.max_chunks_up`. With this option, `storage.max_chunks_up` becomes a hard limit for the input. When the input is paused, records won't be ingested until the plugin resumes. For some inputs, such as TCP and tail, pausing the input will almost certainly lead to log loss. For the tail input, Fluent Bit can save its current offset in the current file it's reading, and pick back up when the input is resumed.
111
111
@@ -122,7 +122,7 @@ Fluent Bit implements the concept of logical queues. Based on its tag, a chunk c
122
122
123
123
It's common to find cases where multiple destinations with different response times exist for a chunk, or one of the destinations is generating backpressure.
124
124
125
-
To limit the amount of filesystem chunks logically queueing, Fluent Bit v1.6 and later includes the `storage.total_limit_size` configuration property for output This property limits the total size in bytes of chunks that can exist in the filesystem for a certain logical output destination. If one of the destinations reaches the configured `storage.total_limit_size`, the oldest chunk from its queue for that logical output destination will be discarded to make room for new data.
125
+
To limit the amount of filesystem chunks logically queueing, Fluent Bit v1.6 and later includes the `storage.total_limit_size` configuration property for output. This property limits the total size in bytes of chunks that can exist in the filesystem for a certain logical output destination. If one of the destinations reaches the configured `storage.total_limit_size`, the oldest chunk from its queue for that logical output destination will be discarded to make room for new data.
126
126
127
127
## Configuration
128
128
@@ -145,9 +145,9 @@ The Service section refers to the section defined in the main [configuration fil
145
145
|`storage.checksum`| Enable the data integrity check when writing and reading data from the filesystem. The storage layer uses the CRC32 algorithm. Accepted values: `Off`, `On`. |`Off`|
146
146
|`storage.max_chunks_up`| If the input plugin has enabled `filesystem` storage type, this property sets the maximum number of chunks that can be `up` in memory. Use this setting to control memory usage when you enable `storage.type filesystem`. |`128`|
147
147
|`storage.backlog.mem_limit`| If `storage.path` is set, Fluent Bit looks for data chunks that weren't delivered and are still in the storage layer. These are called _backlog_ data. _Backlog chunks_ are filesystem chunks that were left over from a previous Fluent Bit run; chunks that couldn't be sent before exit that Fluent Bit will pick up when restarted. Fluent Bit will check the `storage.backlog.mem_limit` value against the current memory usage from all `up` chunks for the input. If the `up` chunks currently consume less memory than the limit, it will bring the _backlog_ chunks up into memory so they can be sent by outputs. |`5M`|
148
-
|`storage.backlog.flush_on_shutdown`| When enabled, Fluent Bit will attempt to flush all backlog filesystem chunks to their destination(s) during the shutdown process. This can help ensure data delivery before Fluent Bit stops, but may increase shutdown time. Accepted values: `Off`, `On`. |`Off`|
148
+
|`storage.backlog.flush_on_shutdown`| When enabled, Fluent Bit will attempt to flush all backlog filesystem chunks to their destination during the shutdown process. This can help ensure data delivery before Fluent Bit stops, but can increase shutdown time. Accepted values: `Off`, `On`. |`Off`|
149
149
|`storage.metrics`| If `http_server` option is enabled in the main `[SERVICE]` section, this option registers a new endpoint where internal metrics of the storage layer can be consumed. For more details refer to the [Monitoring](monitoring.md) section. |`off`|
150
-
|`storage.delete_irrecoverable_chunks`| When enabled, [irrecoverable chunks](./buffering-and-storage.md#irrecoverable-chunks) will be deleted during runtime, and any other irrecoverable chunk located in the configured storage path directory will be deleted when Fluent-Bit starts. Accepted values: 'Off`, 'On`. |`Off`|
150
+
|`storage.delete_irrecoverable_chunks`| When enabled, [irrecoverable chunks](./buffering-and-storage.md#irrecoverable-chunks) will be deleted during runtime, and any other irrecoverable chunk located in the configured storage path directory will be deleted when FluentBit starts. Accepted values: `Off`, 'On`. |`Off`|
151
151
152
152
A Service section will look like this:
153
153
@@ -184,7 +184,7 @@ service:
184
184
185
185
This configuration sets an optional buffering mechanism where the route to the data is `/var/log/flb-storage/`. It uses `normal` synchronization mode, without running a checksum and up to a maximum of 5 MB of memory when processing backlog data.
186
186
187
-
### Input Section Configuration
187
+
### Input section configuration
188
188
189
189
Optionally, any Input plugin can configure their storage preference. The following table describes the options available:
190
190
@@ -242,7 +242,7 @@ pipeline:
242
242
{% endtab %}
243
243
{% endtabs %}
244
244
245
-
### Output Section Configuration
245
+
### Output section configuration
246
246
247
247
If certain chunks are filesystem `storage.type` based, it's possible to control the size of the logical queue for an output plugin. The following table describes the options available:
248
248
@@ -302,4 +302,5 @@ pipeline:
302
302
{% endtab %}
303
303
{% endtabs %}
304
304
305
-
If Fluent Bit is offline because of a network issue, it will continue buffering CPU samples, keeping a maximum of 5 MB of the newest data.
305
+
If Fluent Bit is offline because of a network issue, it will continue buffering CPU
306
+
samples, keeping a maximum of 5 MB of the newest data.
Copy file name to clipboardExpand all lines: administration/configuring-fluent-bit/classic-mode/commands.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,10 +6,10 @@ Fluent Bit `Commands` extends a configuration file with specific built-in featur
6
6
7
7
| Command | Prototype | Description |
8
8
| :--- | :--- | :--- |
9
-
|[`@INCLUDE`](commands.md#cmd_include)|`@INCLUDE FILE`| Include a configuration file. |
10
-
|[`@SET`](commands.md#cmd_set)|`@SET KEY=VAL`| Set a configuration variable. |
9
+
|[`@INCLUDE`](#include)|`@INCLUDE FILE`| Include a configuration file. |
10
+
|[`@SET`](#set)|`@SET KEY=VAL`| Set a configuration variable. |
11
11
12
-
## `@INCLUDE` <aid="cmd_include"></a>
12
+
## `@INCLUDE`
13
13
14
14
Configuring a logging pipeline might lead to an extensive configuration file. In order to maintain a human-readable configuration, split the configuration in multiple files.
15
15
@@ -47,7 +47,7 @@ The following is an example of an `inputs.conf` file, like the one called in the
47
47
Tag varlog.*
48
48
```
49
49
50
-
### outputs.conf
50
+
### `outputs.conf`
51
51
52
52
The following is an example of an `outputs.conf` file, like the one called in the previous example.
53
53
@@ -64,7 +64,7 @@ The following is an example of an `outputs.conf` file, like the one called in th
64
64
Logstash_Format On
65
65
```
66
66
67
-
## `@SET` <aid="cmd_set"></a>
67
+
## `@SET`
68
68
69
69
Fluent Bit supports [configuration variables](variables.md). One way to expose this variables to Fluent Bit is through setting a shell environment variable, the other is through the `@SET` command.
@@ -119,7 +115,7 @@ The following is an example of an `OUTPUT` section:
119
115
Match my*cpu
120
116
```
121
117
122
-
### Example: collecting CPU metrics
118
+
### Collecting `cpu`metrics example
123
119
124
120
The following configuration file example demonstrates how to collect CPU metrics and flush the results every five seconds to the standard output:
125
121
@@ -138,7 +134,7 @@ The following configuration file example demonstrates how to collect CPU metrics
138
134
Match my*cpu
139
135
```
140
136
141
-
## Config Include File
137
+
## Config include file
142
138
143
139
To avoid complicated long configuration files is better to split specific parts in different files and call them (include) from one main file. The `@INCLUDE` can be used in the following way:
Copy file name to clipboardExpand all lines: administration/configuring-fluent-bit/classic-mode/format-schema.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,13 +27,13 @@ A section is defined by a name or title inside brackets. Using the previous exam
27
27
- Any commented line under a section must be indented too.
28
28
- End-of-line comments aren't supported, only full-line comments.
29
29
30
-
## Entries: key/value
30
+
## Entries: `key`/`value`
31
31
32
32
A section can contain entries. An entry is defined by a line of text that contains a `Key` and a `Value`. Using the previous example, the `[SERVICE]` section contains two entries: one is the key `Daemon` with value `off` and the other is the key `Log_Level` with the value `debug`. The following rules apply:
33
33
34
34
- An entry is defined by a key and a value.
35
35
- A key must be indented.
36
-
- A key must contain a value which ends in the breakline.
36
+
- A key must contain a value which ends in a line break.
37
37
- Multiple keys with the same name can exist.
38
38
39
39
Commented lines are set prefixing the `#` character. Commented lines aren't processed but they must be indented.
Copy file name to clipboardExpand all lines: administration/configuring-fluent-bit/multiline-parsing.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ A rule specifies how to match a multiline pattern and perform the concatenation.
59
59
- regular expression pattern
60
60
- next state
61
61
62
-
A rule might be defined as follows (comments added to simplify the definition) in corresponding YAML and classic configuration examples below:
62
+
A rule might be defined as follows (comments added to simplify the definition) in the corresponding YAML and classic configuration examples:
63
63
64
64
{% tabs %}
65
65
{% tab title="parsers_multiline.yaml" %}
@@ -99,7 +99,7 @@ To simplify the configuration of regular expressions, you can use the [Rubular](
99
99
100
100
#### Configuration example
101
101
102
-
The following example provides a full Fluent Bit configuration file for multiline parsing by using the definition explained previously. It is provided in corresponding YAML and classic configuration examples below:
102
+
The following example provides a full Fluent Bit configuration file for multiline parsing by using the definition explained previously. It's provided in following YAML and classic configuration examples:
103
103
104
104
{% tabs %}
105
105
@@ -344,7 +344,7 @@ multiline_parsers:
344
344
- state: start_state
345
345
regex: '/([a-zA-Z]+ \d+ \d+\:\d+\:\d+)(.*)/'
346
346
next_state: cont
347
-
347
+
348
348
- state: cont
349
349
regex: '/^\s+at.*/'
350
350
next_state: cont
@@ -367,9 +367,9 @@ This file defines a multiline parser for the classic example.
367
367
flush_timeout 1000
368
368
#
369
369
# Regex rules for multiline parsing
370
-
# ---------------------------------
370
+
# ---------------------------------
371
371
#
372
-
# configuration hints:
372
+
# configuration hints:
373
373
#
374
374
# - first state always has the name: start_state
375
375
# - every field in the rule must be inside double quotes
Copy file name to clipboardExpand all lines: administration/configuring-fluent-bit/yaml/README.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,28 +1,28 @@
1
1
# YAML configuration
2
2
3
-
## Before You Get Started
3
+
## Before you get started
4
4
5
-
Fluent Bit traditionally offered a `classic` configuration mode, a custom configuration format that we are gradually phasing out. While `classic` mode has served well for many years, it has several limitations. Its basic design only supports grouping sections with key-value pairs and lacks the ability to handle sub-sections or complex data structures like lists.
5
+
Fluent Bit traditionally offered a `classic` configuration mode, a custom configuration format that's phasing out. While `classic` mode has served well for many years, it has several limitations. Its basic design only supports grouping sections with key-value pairs and lacks the ability to handle sub-sections or complex data structures like lists.
6
6
7
-
YAML, now a mainstream configuration format, has become essential in a cloud ecosystem where everything is configured this way. To minimize friction and provide a more intuitive experience for creating data pipelines, we strongly encourage users to transition to YAML. The YAML format enables features, such as processors, that are not possible to configure in `classic` mode.
7
+
YAMLhas become essential in a cloud ecosystem. To minimize friction and provide a more intuitive experience for creating data pipelines, users are encouraged to transition to YAML. The YAML format enables features, such as processors, that aren't possible to configure in `classic` mode.
8
8
9
9
As of Fluent Bit v3.2, you can configure everything in YAML.
10
10
11
-
## List of Available Sections
11
+
## List of available sections
12
12
13
13
Configuring Fluent Bit with YAML introduces the following root-level sections:
|`service`| Describes the global configuration for the Fluent Bit service. This section is optional; if not set, default values will apply. Only one `service` section can be defined. |
18
-
|`parsers`| Lists parsers to be used by components like inputs, processors, filters, or output plugins. You can define multiple `parsers` sections, which can also be loaded from external files included in the main YAML configuration. |
19
-
|`multiline_parsers`| Lists multiline parsers, functioning similarly to `parsers`. Multiple definitions can exist either in the root or in included files. |
20
-
|`pipeline`| Defines a pipeline composed of inputs, processors, filters, and output plugins. You can define multiple `pipeline` sections, but they will not operate independently. Instead, all components will be merged into a single pipeline internally. |
21
-
|`plugins`| Specifies the path to external plugins (.so files) to be loaded by Fluent Bit at runtime.|
22
-
|`upstream_servers`| Refers to a group of node endpoints that can be referenced by output plugins that support this feature.|
23
-
|`env`| Sets a list of environment variables for Fluent Bit. Note that system environment variables are available, while the ones defined in the configuration apply only to Fluent Bit. |
24
-
25
-
## Section Documentation
15
+
| Section Name | Description|
16
+
|--------------|-------------|
17
+
|`service`| Describes the global configuration for the Fluent Bit service. Optional. If not set, default values will apply. Only one `service` section can be defined. |
18
+
|`parsers`| Lists parsers to be used by components like inputs, processors, filters, or output plugins. You can define multiple `parsers` sections, which can also be loaded from external files included in the main YAML configuration. |
19
+
|`multiline_parsers`| Lists multiline parsers, functioning similarly to `parsers`. Multiple definitions can exist either in the root or in included files. |
20
+
|`pipeline`| Defines a pipeline composed of inputs, processors, filters, and output plugins. You can define multiple `pipeline` sections, but they won't operate independently. Instead, all components will be merged into a single pipeline internally. |
21
+
|`plugins`| Specifies the path to external plugins (`.so` files) to be loaded by Fluent Bit at runtime. |
22
+
|`upstream_servers`| Refers to a group of node endpoints that can be referenced by output plugins that support this feature. |
23
+
|`env`| Sets a list of environment variables for Fluent Bit. System environment variables are available, while the ones defined in the configuration apply only to Fluent Bit. |
24
+
25
+
## Section documentation
26
26
27
27
To access detailed configuration guides for each section, use the following links:
0 commit comments