File tree 1 file changed +44
-1
lines changed
1 file changed +44
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ operational Doris service running in your environment.
13
13
| Key | Description | Default |
14
14
| :--- | :--- | :--- |
15
15
| ` 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 ` |
17
17
| ` user ` | Username for Doris access | _ none_ |
18
18
| ` password ` | Password for Doris access | _ none_ |
19
19
| ` database ` | The target Doris database | _ none_ |
@@ -28,3 +28,46 @@ operational Doris service running in your environment.
28
28
Doris output plugin supports TLS/SSL. For more details about the properties
29
29
available and general configuration, refer to[ TLS/SSL] ( ../../administration/transport-security.md ) .
30
30
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
+ ```
You can’t perform that action at this time.
0 commit comments