-
Notifications
You must be signed in to change notification settings - Fork 516
out_doris: doc for new doris out plugin #1483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
joker-star-l
wants to merge
5
commits into
fluent:master
Choose a base branch
from
joker-star-l:dev
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
--- | ||
description: Send logs to Apache Doris | ||
--- | ||
|
||
# Apache Doris | ||
|
||
The **doris** output plugin lets you ingest your records into an | ||
[Apache Doris](https://doris.apache.org) database. To use this plugin, you must have an | ||
operational Doris service running in your environment. | ||
|
||
## Configuration Parameters | ||
|
||
| Key | Description | Default | | ||
| :--- | :--- | :--- | | ||
| `host` | HTTP address of the target Doris frontend (fe) or frontend (be). | `127.0.0.1` | | ||
| `port` | HTTP port of the target Doris frontend (fe) or frontend (be). | `8030` | | ||
| `user` | Username for Doris access. | _none_ | | ||
| `password` | Password for Doris access. | _none_ | | ||
| `database` | The target Doris database. | _none_ | | ||
| `table` | The target Doris table. | _none_ | | ||
| `label_prefix` | Label prefix of Doris stream load, the final generated Label is {label_prefix}\_{timestamp}\_{uuid}. | `fluentbit` | | ||
| `time_key` | The name of the time key in the output record. | `date` | | ||
| `header` | Headers of Doris stream load. Multiple headers can be set. See [Doris stream load](https://doris.apache.org/docs/data-operate/import/import-way/stream-load-manual) for details. | _none_ | | ||
| `log_request` | Whether to output Doris Stream Load request and response metadata in logs for troubleshooting. | `true` | | ||
| `log_progress_interval` | The time interval in seconds to calculate and output the speed in the log. Set to 0 to disable this type of logging. | `10` | | ||
| `Workers` | The number of [workers](../../administration/multithreading.md#outputs) to perform flush operations for this output. | `2` | | ||
|
||
### TLS / SSL | ||
|
||
The Doris output plugin supports TLS/SSL. See [TLS/SSL](../../administration/transport-security.md) | ||
for more details about the supported properties and general configuration. | ||
|
||
## Get started | ||
|
||
To insert records into a Doris database, run the plugin from the command line or define a configuration file: | ||
|
||
### Command Line | ||
|
||
The Doris plugin can read the parameters from the command through the `-p` argument, | ||
|
||
as shown in the following example: | ||
|
||
```shell copy | ||
fluent-bit -i cpu -t cpu -o doris \ | ||
-m '*' \ | ||
-p host=127.0.0.1 \ | ||
-p port=8030 \ | ||
-p user=admin \ | ||
-p password=admin \ | ||
-p database=d_fb \ | ||
-p table=t_fb \ | ||
-p header='columns date, cpu_p, log=cast(cpu_p as string)' | ||
``` | ||
|
||
### Configuration File | ||
|
||
In your main configuration file, append the following `Input` and `Output` sections. | ||
|
||
{% tabs %} | ||
{% tab title="fluent-bit.conf" %} | ||
```python copy | ||
[INPUT] | ||
Name cpu | ||
Tag cpu | ||
|
||
[OUTPUT] | ||
name doris | ||
match * | ||
host 127.0.0.1 | ||
port 8030 | ||
user admin | ||
password admin | ||
database d_fb | ||
table t_fb | ||
header columns date, cpu_p, log=cast(cpu_p as string) | ||
``` | ||
{% endtab %} | ||
|
||
{% tab title="fluent-bit.yaml" %} | ||
```yaml copy | ||
pipeline: | ||
inputs: | ||
- name: cpu | ||
tag: cpu | ||
outputs: | ||
- name: doris | ||
match: '*' | ||
host: 127.0.0.1 | ||
port: 8030 | ||
user: admin | ||
password: admin | ||
database: d_fb | ||
table: t_fb | ||
header: | ||
- columns date, cpu_p, log=cast(cpu_p as string) | ||
``` | ||
{% endtab %} | ||
{% endtabs %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,7 @@ deprovisioning | |
deprovisions | ||
Devo | ||
DogStatsD | ||
Doris | ||
downsample | ||
downsampled | ||
downsamples | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.