Skip to content

Commit 330fea8

Browse files
committed
in_forward: Add an example for secure forward protocol without TLS
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent 9c195b6 commit 330fea8

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

pipeline/inputs/forward.md

+45
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,51 @@ pipeline:
7777
{% endtab %}
7878
{% endtabs %}
7979
80+
## Fluent Bit + Secure Forward Setup
81+
82+
Since Fluent Bit v3, in\_forward can handle secure forward protocol.
83+
84+
For using user-password authentication, it needs to specify `secutiry.users` at least an one-pair.
85+
For using shared key, it needs to specify `shared_key` in both of forward output and forward input.
86+
`self_hostname` is not able to specify with the same hostname between fluent servers and clients.
87+
88+
{% tabs %}
89+
{% tab title="fluent-bit-secure-forward.conf" %}
90+
```python
91+
[INPUT]
92+
Name forward
93+
Listen 0.0.0.0
94+
Port 24224
95+
Buffer_Chunk_Size 1M
96+
Buffer_Max_Size 6M
97+
Security.Users fluentbit changeme
98+
Shared_Key secret
99+
Self_Hostname flb.server.local
100+
101+
[OUTPUT]
102+
Name stdout
103+
Match *
104+
```
105+
{% endtab %}
106+
107+
{% tab title="fluent-bit-secure-forward.yaml" %}
108+
```yaml
109+
pipeline:
110+
inputs:
111+
- name: forward
112+
listen: 0.0.0.0
113+
port: 24224
114+
buffer_chunk_size: 1M
115+
buffer_max_size: 6M
116+
security.users: fluentbit changeme
117+
shared_key: secret
118+
self_hostname: flb.server.local
119+
outputs:
120+
- name: stdout
121+
match: '*'
122+
```
123+
{% endtab %}
124+
{% endtabs %}
80125

81126
## Testing
82127

0 commit comments

Comments
 (0)