@@ -14,15 +14,32 @@ You can run the plugin from the command line or through the configuration file:
1414
1515From the command line you can let Fluent Bit count up a data with the following options:
1616
17- ``` bash
17+ ``` shell
1818fluent-bit -i cpu -o counter
1919```
2020
2121### Configuration File
2222
23- In your main configuration file append the following Input & Output sections :
23+ In your main configuration file append the following:
2424
25- ``` python
25+ {% tabs %}
26+ {% tab title="fluent-bit.yaml" %}
27+
28+ ``` yaml
29+ pipeline :
30+ inputs :
31+ - name : cpu
32+ tag : cpu
33+
34+ outputs :
35+ - name : counter
36+ match : ' *'
37+ ` ` `
38+
39+ {% endtab %}
40+ {% tab title="fluent-bit.conf" %}
41+
42+ ` ` ` text
2643[INPUT]
2744 Name cpu
2845 Tag cpu
@@ -32,23 +49,39 @@ In your main configuration file append the following Input & Output sections:
3249 Match *
3350```
3451
52+ {% endtab %}
53+ {% endtabs %}
54+
3555## Testing
3656
3757Once Fluent Bit is running, you will see the reports in the output interface similar to this:
3858
39- ``` bash
59+ ``` shell
4060$ bin/fluent-bit -i cpu -o counter -f 1
41- Fluent Bit v1.x.x
42- * Copyright (C) 2019-2020 The Fluent Bit Authors
43- * Copyright (C) 2015-2018 Treasure Data
61+
62+ Fluent Bit v4.0.3
63+ * Copyright (C) 2015-2025 The Fluent Bit Authors
4464* Fluent Bit is a CNCF sub-project under the umbrella of Fluentd
4565* https://fluentbit.io
4666
47- [2017/07/19 11:19:02] [ info] [engine] started
67+ ______ _ _ ______ _ _ ___ _____
68+ | ___| | | | | ___ (_) | / || _ |
69+ | | _ | | _ _ ___ _ __ | | _ | | _/ /_| | _ __ __/ /| || | /' |
70+ | _| | | | | |/ _ \ ' _ \| __| | ___ \ | __| \ \ / / /_| || /| |
71+ | | | | | _| | __/ | | | | _ | | _/ / | | _ \ V /\_ __ | \ | _/ /
72+ \_ | | _| \_ _,_| \_ __| _| | _| \_ _| \_ ___/| _| \_ _| \_ / | _(_)___/
73+
74+
75+ [2025/07/11 16:49:57] [ info] [fluent bit] version=4.0.3, commit=37b6e9eda2, pid=52469
76+ [2025/07/11 16:49:57] [ info] [storage] ver=1.5.3, type=memory, sync=normal, checksum=off, max_chunks_up=128
77+ [2025/07/11 16:49:57] [ info] [simd ] disabled
78+ [2025/07/11 16:49:57] [ info] [cmetrics] version=1.0.3
79+ [2025/07/11 16:49:57] [ info] [ctraces ] version=0.6.6
80+ [2025/07/11 16:49:57] [ info] [sp] stream processor started
81+ [2025/07/11 16:49:57] [ info] [engine] Shutdown Grace Period=5, Shutdown Input Grace Period=2
48821500484743,1 (total = 1)
49831500484744,1 (total = 2)
50841500484745,1 (total = 3)
51851500484746,1 (total = 4)
52861500484747,1 (total = 5)
53- ```
54-
87+ ```
0 commit comments