Skip to content

Commit 5d7e34b

Browse files
committed
feat: add yaml config
Signed-off-by: composer <[email protected]>
1 parent 7a29de0 commit 5d7e34b

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

pipeline/outputs/doris.md

+26-2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ fluent-bit -i cpu -t cpu -o doris \
5656

5757
In your main configuration file, append the following `Input` and `Output` sections.
5858

59+
{% tabs %}
60+
{% tab title="fluent-bit.conf" %}
5961
```python copy
6062
[INPUT]
6163
Name cpu
@@ -70,5 +72,27 @@ In your main configuration file, append the following `Input` and `Output` secti
7072
password admin
7173
database d_fb
7274
table t_fb
73-
columns date, cpu_p, log=cast(cpu_p as string)
74-
```
75+
header columns date, cpu_p, log=cast(cpu_p as string)
76+
```
77+
{% endtab %}
78+
79+
{% tab title="fluent-bit.yaml" %}
80+
```yaml copy
81+
pipeline:
82+
inputs:
83+
- name: cpu
84+
tag: cpu
85+
outputs:
86+
- name: doris
87+
match: '*'
88+
host: 127.0.0.1
89+
port: 8030
90+
user: admin
91+
password: admin
92+
database: d_fb
93+
table: t_fb
94+
header:
95+
- columns date, cpu_p, log=cast(cpu_p as string)
96+
```
97+
{% endtab %}
98+
{% endtabs %}

0 commit comments

Comments
 (0)