Skip to content

Commit 36a7d7b

Browse files
committed
Classic mode variables: Style update
Signed-off-by: Lynette Miles <[email protected]>
1 parent fdacfc6 commit 36a7d7b

File tree

1 file changed

+8
-9
lines changed
  • administration/configuring-fluent-bit/classic-mode

1 file changed

+8
-9
lines changed

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

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ ${MY_VARIABLE}
1212

1313
When Fluent Bit starts, the configuration reader will detect any request for `${MY_VARIABLE}` and will try to resolve its value.
1414

15-
When Fluent Bit is running under systemd (using the official packages), environment variables can be set in the following files:
16-
* `/etc/default/fluent-bit` (Debian based system)
17-
* `/etc/sysconfig/fluent-bit` (Others)
15+
When Fluent Bit is running under [`systemd`](https://systemd.io/) (using the official packages), environment
16+
variables can be set in the following files:
1817

19-
These files are ignored if they do not exist.
18+
- `/etc/default/fluent-bit` (Debian based system)
19+
- `/etc/sysconfig/fluent-bit` (Others)
20+
21+
These files are ignored if they don't exist.
2022

2123
## Example
2224

@@ -40,10 +42,10 @@ Create the following configuration file \(`fluent-bit.conf`\):
4042
Open a terminal and set the environment variable:
4143

4244
```bash
43-
$ export MY_OUTPUT=stdout
45+
export MY_OUTPUT=stdout
4446
```
4547

46-
> The above command set the 'stdout' value to the variable `MY_OUTPUT`.
48+
The previous command sets the `stdout` value to the variable `MY_OUTPUT`.
4749

4850
Run Fluent Bit with the recently created configuration file:
4951

@@ -58,6 +60,3 @@ Fluent Bit v1.4.0
5860
[2020/03/03 12:25:25] [ info] [engine] started
5961
[0] cpu.local: [1491243925, {"cpu_p"=>1.750000, "user_p"=>1.750000, "system_p"=>0.000000, "cpu0.p_cpu"=>3.000000, "cpu0.p_user"=>2.000000, "cpu0.p_system"=>1.000000, "cpu1.p_cpu"=>0.000000, "cpu1.p_user"=>0.000000, "cpu1.p_system"=>0.000000, "cpu2.p_cpu"=>4.000000, "cpu2.p_user"=>4.000000, "cpu2.p_system"=>0.000000, "cpu3.p_cpu"=>1.000000, "cpu3.p_user"=>1.000000, "cpu3.p_system"=>0.000000}]
6062
```
61-
62-
As you can see the service worked properly as the configuration was valid.
63-

0 commit comments

Comments
 (0)