Skip to content

Commit 0eb5d33

Browse files
authored
in_forward: add examples for yaml configuration (#1315)
Signed-off-by: Takahiro Yamashita <nokute78@gmail.com>
1 parent a40311a commit 0eb5d33

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

pipeline/inputs/forward.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ In the example the Forward messages will only arrive through network interface u
4242

4343
In your main configuration file append the following _Input_ & _Output_ sections:
4444

45+
{% tabs %}
46+
{% tab title="fluent-bit.conf" %}
4547
```python
4648
[INPUT]
4749
Name forward
@@ -54,6 +56,24 @@ In your main configuration file append the following _Input_ & _Output_ sections
5456
Name stdout
5557
Match *
5658
```
59+
{% endtab %}
60+
61+
{% tab title="fluent-bit.yaml" %}
62+
```yaml
63+
pipeline:
64+
inputs:
65+
- name: forward
66+
listen: 0.0.0.0
67+
port: 24224
68+
buffer_chunk_size: 1M
69+
buffer_max_size: 6M
70+
outputs:
71+
- name: stdout
72+
match: '*'
73+
```
74+
{% endtab %}
75+
{% endtabs %}
76+
5777
5878
## Testing
5979

0 commit comments

Comments
 (0)