Skip to content

Commit 2ad2502

Browse files
authored
in_random: add examples for yaml configuration (#1328)
Signed-off-by: Takahiro Yamashita <[email protected]>
1 parent 28eae0d commit 2ad2502

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

pipeline/inputs/random.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ $ fluent-bit -i random -o stdout
2828

2929
In your main configuration file append the following _Input_ & _Output_ sections:
3030

31+
{% tabs %}
32+
{% tab title="fluent-bit.conf" %}
3133
```python
3234
[INPUT]
3335
Name random
@@ -39,6 +41,23 @@ In your main configuration file append the following _Input_ & _Output_ sections
3941
Name stdout
4042
Match *
4143
```
44+
{% endtab %}
45+
46+
{% tab title="fluent-bit.yaml" %}
47+
```yaml
48+
pipeline:
49+
inputs:
50+
- name: random
51+
samples: -1
52+
interval_sec: 1
53+
interval_nsec: 0
54+
outputs:
55+
- name: stdout
56+
match: '*'
57+
```
58+
{% endtab %}
59+
{% endtabs %}
60+
4261
4362
## Testing
4463

0 commit comments

Comments
 (0)