Skip to content

Commit f961653

Browse files
committed
Adding YAML examples and layout fixes for Kafka REST Proxy output plugin. Part of issue #1916.
Signed-off-by: Eric D. Schabell <[email protected]>
1 parent 02229c7 commit f961653

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

pipeline/outputs/kafka-rest-proxy.md

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,36 @@ In order to insert records into a Kafka REST Proxy service, you can run the plug
3030

3131
The **kafka-rest** plugin, can read the parameters from the command line in two ways, through the **-p** argument \(property\), e.g:
3232

33-
```text
33+
```shell
3434
fluent-bit -i cpu -t cpu -o kafka-rest -p host=127.0.0.1 -p port=8082 -m '*'
3535
```
3636

3737
### Configuration File
3838

39-
In your main configuration file append the following _Input_ & _Output_ sections:
39+
In your main configuration file append the following:
40+
41+
{% tabs %}
42+
{% tab title="fluent-bit.yaml" %}
43+
44+
```yaml
45+
pipeline:
46+
inputs:
47+
- name: cpu
48+
tag: cpu
49+
50+
outputs:
51+
- name: kafka-rest
52+
match: '*'
53+
host: 127.0.0.1
54+
port: 8082
55+
topic: fluent-bit
56+
message_key: my_key
57+
```
4058
41-
```python
59+
{% endtab %}
60+
{% tab title="fluent-bit.conf" %}
61+
62+
```text
4263
[INPUT]
4364
Name cpu
4465
Tag cpu
@@ -51,3 +72,6 @@ In your main configuration file append the following _Input_ & _Output_ sections
5172
Topic fluent-bit
5273
Message_Key my_key
5374
```
75+
76+
{% endtab %}
77+
{% endtabs %}

0 commit comments

Comments
 (0)