@@ -25,20 +25,36 @@ To monitor network traffic from your system, you can run the plugin from the com
25
25
26
26
Run Fluent Bit using a command similar to the following:
27
27
28
- ``` bash
29
- bin/ fluent-bit -i netif -p interface=eth0 -o stdout
28
+ ``` shell
29
+ $ fluent-bit -i netif -p interface=eth0 -o stdout
30
30
```
31
31
32
32
Which returns something the following:
33
33
34
34
``` text
35
- Fluent Bit v1.x.x
36
- * Copyright (C) 2019-2020 The Fluent Bit Authors
37
- * Copyright (C) 2015-2018 Treasure Data
35
+ Fluent Bit v4.0.3
36
+ * Copyright (C) 2015-2025 The Fluent Bit Authors
38
37
* Fluent Bit is a CNCF sub-project under the umbrella of Fluentd
39
38
* https://fluentbit.io
40
39
41
- [2017/07/08 23:34:18] [ info] [engine] started
40
+ ______ _ _ ______ _ _ ___ _____
41
+ | ___| | | | | ___ (_) | / || _ |
42
+ | |_ | |_ _ ___ _ __ | |_ | |_/ /_| |_ __ __/ /| || |/' |
43
+ | _| | | | | |/ _ \ '_ \| __| | ___ \ | __| \ \ / / /_| || /| |
44
+ | | | | |_| | __/ | | | |_ | |_/ / | |_ \ V /\___ |\ |_/ /
45
+ \_| |_|\__,_|\___|_| |_|\__| \____/|_|\__| \_/ |_(_)___/
46
+
47
+
48
+ [2025/07/01 14:44:47] [ info] [fluent bit] version=4.0.3, commit=f5f5f3c17d, pid=1
49
+ [2025/07/01 14:44:47] [ info] [storage] ver=1.5.3, type=memory, sync=normal, checksum=off, max_chunks_up=128
50
+ [2025/07/01 14:44:47] [ info] [simd ] disabled
51
+ [2025/07/01 14:44:47] [ info] [cmetrics] version=1.0.3
52
+ [2025/07/01 14:44:47] [ info] [ctraces ] version=0.6.6
53
+ [2025/07/01 14:44:47] [ info] [input:mem:mem.0] initializing
54
+ [2025/07/01 14:44:47] [ info] [input:mem:mem.0] storage_strategy='memory' (memory only)
55
+ [2025/07/01 14:44:47] [ info] [sp] stream processor started
56
+ [2025/07/01 14:44:47] [ info] [engine] Shutdown Grace Period=5, Shutdown Input Grace Period=2
57
+ [2025/07/01 14:44:47] [ info] [output:stdout:stdout.0] worker #0 started
42
58
[0] netif.0: [1499524459.001698260, {"eth0.rx.bytes"=>89769869, "eth0.rx.packets"=>73357, "eth0.rx.errors"=>0, "eth0.tx.bytes"=>4256474, "eth0.tx.packets"=>24293, "eth0.tx.errors"=>0}]
43
59
[1] netif.0: [1499524460.002541885, {"eth0.rx.bytes"=>98, "eth0.rx.packets"=>1, "eth0.rx.errors"=>0, "eth0.tx.bytes"=>98, "eth0.tx.packets"=>1, "eth0.tx.errors"=>0}]
44
60
[2] netif.0: [1499524461.001142161, {"eth0.rx.bytes"=>98, "eth0.rx.packets"=>1, "eth0.rx.errors"=>0, "eth0.tx.bytes"=>98, "eth0.tx.packets"=>1, "eth0.tx.errors"=>0}]
@@ -47,25 +63,9 @@ Fluent Bit v1.x.x
47
63
48
64
### Configuration file
49
65
50
- In your main configuration file append the following ` Input ` and ` Output ` sections :
66
+ In your main configuration file append the following:
51
67
52
68
{% tabs %}
53
- {% tab title="fluent-bit.conf" %}
54
-
55
- ``` python
56
- [INPUT ]
57
- Name netif
58
- Tag netif
59
- Interval_Sec 1
60
- Interval_NSec 0
61
- Interface eth0
62
- [OUTPUT ]
63
- Name stdout
64
- Match *
65
- ```
66
-
67
- {% endtab %}
68
-
69
69
{% tab title="fluent-bit.yaml" %}
70
70
71
71
``` yaml
@@ -76,14 +76,31 @@ pipeline:
76
76
interval_sec : 1
77
77
interval_nsec : 0
78
78
interface : eth0
79
+
79
80
outputs :
80
81
- name : stdout
81
82
match : ' *'
82
83
` ` `
83
84
85
+ {% endtab %}
86
+ {% tab title="fluent-bit.conf" %}
87
+
88
+ ` ` ` text
89
+ [INPUT]
90
+ Name netif
91
+ Tag netif
92
+ Interval_Sec 1
93
+ Interval_NSec 0
94
+ Interface eth0
95
+
96
+ [OUTPUT]
97
+ Name stdout
98
+ Match *
99
+ ```
100
+
84
101
{% endtab %}
85
102
{% endtabs %}
86
103
87
104
Which calculates using the formula: ` Total interval (sec) = Interval_Sec + (Interval_Nsec / 1000000000) ` .
88
105
89
- For example : ` 1.5s = 1s + 500000000ns`
106
+ For example: ` 1.5s = 1s + 500000000ns `
0 commit comments