Skip to content

Commit 89a0f4c

Browse files
authored
Merge pull request #1659 from fluent/lynettemiles/sc-135604/update-fluent-bit-fluent-bit-docs-administration
2 parents 875267e + ce94bc1 commit 89a0f4c

File tree

1 file changed

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

1 file changed

+8
-10
lines changed

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

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,18 @@ ${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 variables can be set in the following files:
1816

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

2122
## Example
2223

2324
Create the following configuration file \(`fluent-bit.conf`\):
2425

25-
```text
26+
```yaml
2627
[SERVICE]
2728
Flush 1
2829
Daemon Off
@@ -40,10 +41,10 @@ Create the following configuration file \(`fluent-bit.conf`\):
4041
Open a terminal and set the environment variable:
4142

4243
```bash
43-
$ export MY_OUTPUT=stdout
44+
export MY_OUTPUT=stdout
4445
```
4546

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

4849
Run Fluent Bit with the recently created configuration file:
4950

@@ -58,6 +59,3 @@ Fluent Bit v1.4.0
5859
[2020/03/03 12:25:25] [ info] [engine] started
5960
[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}]
6061
```
61-
62-
As you can see the service worked properly as the configuration was valid.
63-

0 commit comments

Comments
 (0)