Skip to content

Commit 78e6985

Browse files
committed
feat: add example
Signed-off-by: composer <[email protected]>
1 parent 26a5a0f commit 78e6985

File tree

1 file changed

+44
-1
lines changed

1 file changed

+44
-1
lines changed

pipeline/outputs/doris.md

+44-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ operational Doris service running in your environment.
1313
| Key | Description | Default |
1414
| :--- | :--- | :--- |
1515
| `host` | HTTP address of the target Doris fe or be | `127.0.0.1` |
16-
| `port` | HTTP port of the target Doris fe or be | `8300` |
16+
| `port` | HTTP port of the target Doris fe or be | `8030` |
1717
| `user` | Username for Doris access | _none_ |
1818
| `password` | Password for Doris access | _none_ |
1919
| `database` | The target Doris database | _none_ |
@@ -28,3 +28,46 @@ operational Doris service running in your environment.
2828
Doris output plugin supports TLS/SSL. For more details about the properties
2929
available and general configuration, refer to[TLS/SSL](../../administration/transport-security.md).
3030

31+
## Get started
32+
33+
To insert records into a Doris database, you run the plugin from the
34+
command line or through the configuration file:
35+
36+
### Command Line
37+
38+
The **doris** plugin can read the parameters from the command through the `-p` argument (property).
39+
40+
An example:
41+
42+
```shell copy
43+
fluent-bit -i cpu -t cpu -o doris \
44+
-m '*' \
45+
-p host=127.0.0.1 \
46+
-p port=8030 \
47+
-p user=admin \
48+
-p password=admin \
49+
-p database=d_fb \
50+
-p table=t_fb \
51+
-p columns='date, log=cast(cpu_p as string)'
52+
```
53+
54+
### Configuration File
55+
56+
In your main configuration file append the following `Input` and `Output` sections.
57+
58+
```python
59+
[INPUT]
60+
Name cpu
61+
Tag cpu
62+
63+
[OUTPUT]
64+
name doris
65+
match *
66+
host 127.0.0.1
67+
port 8030
68+
user admin
69+
password admin
70+
database d_fb
71+
table t_fb
72+
columns date, log=cast(cpu_p as string)
73+
```

0 commit comments

Comments
 (0)