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/configuring-fluent-bit/yaml/environment-variables-section.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
-
# Environment Variables Section
1
+
# Environment variables section
2
2
3
-
The `env` section allows you to define environment variables directly within the configuration file. These variables can then be used to dynamically replace values throughout your configuration using the `${VARIABLE_NAME}` syntax.
3
+
The `env` section lets you define environment variables directly within the configuration file. These variables can then be used to dynamically replace values throughout your configuration using the `${VARIABLE_NAME}` syntax.
4
4
5
-
Values set in the `env` section are case-sensitive. However, as a best practice, we recommend using uppercase names for environment variables. The example below defines two variables, `FLUSH_INTERVAL` and `STDOUT_FMT`, which can be accessed in the configuration using `${FLUSH_INTERVAL}` and `${STDOUT_FMT}`:
5
+
Values set in the `env` section are case-sensitive. However, as a best practice, Fluent Bit recommends using uppercase names for environment variables. The following example defines two variables, `FLUSH_INTERVAL` and `STDOUT_FMT`, which can be accessed in the configuration using `${FLUSH_INTERVAL}` and `${STDOUT_FMT}`:
6
6
7
7
```yaml
8
8
env:
@@ -23,19 +23,19 @@ pipeline:
23
23
format: ${STDOUT_FMT}
24
24
```
25
25
26
-
## Predefined Variables
26
+
## Predefined variables
27
27
28
28
Fluent Bit provides a set of predefined environment variables that can be used in your configuration:
29
29
30
30
| Name | Description |
31
-
|--|--|
31
+
| ---- | ----------- |
32
32
| `${HOSTNAME}` | The system's hostname. |
33
33
34
-
## External Variables
34
+
## External variables
35
35
36
-
In addition to variables defined in the configuration file or the predefined ones, Fluent Bit can access system environment variables set in the user space. These external variables can be referenced in the configuration using the same ${VARIABLE_NAME} pattern.
36
+
In addition to variables defined in the configuration file or the predefined ones, Fluent Bit can access system environment variables set in the user space. These external variables can be referenced in the configuration using the same `${VARIABLE_NAME}` pattern.
37
37
38
-
For example, to set the FLUSH_INTERVAL system environment variable to 2 and use it in your configuration:
38
+
For example, to set the `FLUSH_INTERVAL` system environment variable to `2` and use it in your configuration:
39
39
40
40
```bash
41
41
export FLUSH_INTERVAL=2
@@ -58,4 +58,4 @@ pipeline:
58
58
format: json_lines
59
59
```
60
60
61
-
This approach allows you to easily manage and override configuration values using environment variables, providing flexibility in various deployment environments.
61
+
This approach lets you manage and override configuration values using environment variables, providing flexibility in various deployment environments.
0 commit comments