@@ -21,61 +21,81 @@ In order to start generating random samples, you can run the plugin from the com
21
21
22
22
From the command line you can let Fluent Bit generate the samples with the following options:
23
23
24
- ``` bash
24
+ ``` shell
25
25
$ fluent-bit -i random -o stdout
26
26
```
27
27
28
28
### Configuration File
29
29
30
- In your main configuration file append the following _ Input _ & _ Output _ sections :
30
+ In your main configuration file append the following:
31
31
32
32
{% tabs %}
33
- {% tab title="fluent-bit.conf" %}
34
- ``` python
35
- [INPUT ]
36
- Name random
37
- Samples - 1
38
- Interval_Sec 1
39
- Interval_NSec 0
40
-
41
- [OUTPUT ]
42
- Name stdout
43
- Match *
44
- ```
45
- {% endtab %}
46
-
47
33
{% tab title="fluent-bit.yaml" %}
34
+
48
35
``` yaml
49
36
pipeline :
50
37
inputs :
51
38
- name : random
52
39
samples : -1
53
40
interval_sec : 1
54
41
interval_nsec : 0
42
+
55
43
outputs :
56
44
- name : stdout
57
45
match : ' *'
58
46
` ` `
47
+
59
48
{% endtab %}
60
- {% endtabs %}
49
+ {% tab title="fluent-bit.conf" %}
50
+
51
+ ` ` ` text
52
+ [INPUT]
53
+ Name random
54
+ Samples -1
55
+ Interval_Sec 1
56
+ Interval_NSec 0
57
+
58
+ [OUTPUT]
59
+ Name stdout
60
+ Match *
61
+ ```
61
62
63
+ {% endtab %}
64
+ {% endtabs %}
62
65
63
66
## Testing
64
67
65
68
Once Fluent Bit is running, you will see the reports in the output interface similar to this:
66
69
67
- ` ` ` bash
70
+ ``` shell
68
71
$ fluent-bit -i random -o stdout
69
- Fluent Bit v1.x.x
70
- * Copyright (C) 2019-2020 The Fluent Bit Authors
71
- * Copyright (C) 2015-2018 Treasure Data
72
+
73
+ Fluent Bit v4.0.3
74
+ * Copyright (C) 2015-2025 The Fluent Bit Authors
72
75
* Fluent Bit is a CNCF sub-project under the umbrella of Fluentd
73
76
* https://fluentbit.io
74
77
75
- [2016/10/07 20:27:34] [ info] [engine] started
78
+ ______ _ _ ______ _ _ ___ _____
79
+ | ___| | | | | ___ (_) | / || _ |
80
+ | | _ | | _ _ ___ _ __ | | _ | | _/ /_| | _ __ __/ /| || | /' |
81
+ | _| | | | | |/ _ \ ' _ \| __| | ___ \ | __| \ \ / / /_| || /| |
82
+ | | | | | _| | __/ | | | | _ | | _/ / | | _ \ V /\_ __ | \ | _/ /
83
+ \_ | | _| \_ _,_| \_ __| _| | _| \_ _| \_ ___/| _| \_ _| \_ / | _(_)___/
84
+
85
+
86
+ [2025/07/01 14:44:47] [ info] [fluent bit] version=4.0.3, commit=f5f5f3c17d, pid=1
87
+ [2025/07/01 14:44:47] [ info] [storage] ver=1.5.3, type=memory, sync=normal, checksum=off, max_chunks_up=128
88
+ [2025/07/01 14:44:47] [ info] [simd ] disabled
89
+ [2025/07/01 14:44:47] [ info] [cmetrics] version=1.0.3
90
+ [2025/07/01 14:44:47] [ info] [ctraces ] version=0.6.6
91
+ [2025/07/01 14:44:47] [ info] [input:mem:mem.0] initializing
92
+ [2025/07/01 14:44:47] [ info] [input:mem:mem.0] storage_strategy=' memory' (memory only)
93
+ [2025/07/01 14:44:47] [ info] [sp] stream processor started
94
+ [2025/07/01 14:44:47] [ info] [engine] Shutdown Grace Period=5, Shutdown Input Grace Period=2
95
+ [2025/07/01 14:44:47] [ info] [output:stdout:stdout.0] worker # 0 started
76
96
[0] random.0: [1475893654, {" rand_value" => 1863375102915681408}]
77
97
[1] random.0: [1475893655, {" rand_value" => 425675645790600970}]
78
98
[2] random.0: [1475893656, {" rand_value" => 7580417447354808203}]
79
99
[3] random.0: [1475893657, {" rand_value" => 1501010137543905482}]
80
100
[4] random.0: [1475893658, {" rand_value" => 16238242822364375212}]
81
- ` ` `
101
+ ```
0 commit comments