@@ -14,15 +14,32 @@ You can run the plugin from the command line or through the configuration file:
14
14
15
15
From the command line you can let Fluent Bit count up a data with the following options:
16
16
17
- ``` bash
17
+ ``` shell
18
18
fluent-bit -i cpu -o counter
19
19
```
20
20
21
21
### Configuration File
22
22
23
- In your main configuration file append the following Input & Output sections :
23
+ In your main configuration file append the following:
24
24
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
26
43
[INPUT]
27
44
Name cpu
28
45
Tag cpu
@@ -32,23 +49,39 @@ In your main configuration file append the following Input & Output sections:
32
49
Match *
33
50
```
34
51
52
+ {% endtab %}
53
+ {% endtabs %}
54
+
35
55
## Testing
36
56
37
57
Once Fluent Bit is running, you will see the reports in the output interface similar to this:
38
58
39
- ``` bash
59
+ ``` shell
40
60
$ 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
44
64
* Fluent Bit is a CNCF sub-project under the umbrella of Fluentd
45
65
* https://fluentbit.io
46
66
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
48
82
1500484743,1 (total = 1)
49
83
1500484744,1 (total = 2)
50
84
1500484745,1 (total = 3)
51
85
1500484746,1 (total = 4)
52
86
1500484747,1 (total = 5)
53
- ```
54
-
87
+ ```
0 commit comments