gem build logstash-output-doris.gemspec
Copy logstash-output-doris-{version}.gem
to the logstash installation directory, execute command:./bin/logstash-plugin install logstash-output-doris-{version}.gem
output {doris {http_hosts => [ "http://fehost:8030" ]user => user_namepassword => passworddb => "db_name"table => "table_name"label_prefix => "label_prefix"column_separator => ","}}
Configuration | Description |
http_hosts | FE's HTTP interaction address. For example: ["http://fe1:8030", "http://fe2:8030"] |
user | Username, this user needs to have import permissions for Doris's corresponding library table |
password | Password |
db | Database name |
table | Table name |
label_prefix | Import identification prefix, the final identification is {label_prefix}_{db}_{table}_{time_stamp} |
Configuration | Description |
column_separator | Column delimiter, default is\\t. |
columns | Used to specify the relationship between the columns in the import file and the columns in the table. |
where | Filter condition specified for the import task. |
max_filter_ratio | The maximum tolerance for the import task, default is zero tolerance. |
partition | Partition information of the table to be imported. |
timeout | Timeout, default is 600s. |
strict_mode | Strict mode, default is false. |
timezone | Specify the time zone used for this import, default is Eastern Standard Time. |
exec_mem_limit | Import memory limit, default is 2GB, units in bytes. |
Configuration | Description |
save_on_failure | Whether to save locally if the import fails, default is true |
save_dir | Local save directory, default is /tmp |
automatic_retries | The maximum number of retries when failing, default is 3 |
batch_size | The maximum number of events processed in each batch, default is 100,000 |
idle_flush_time | Maximum interval time, default is 20 (seconds) |
{logstash-home}/bin/logstash -f {logstash-home}/config/logstash-doris.conf --config.reload.automatic
gem build logstash-output-doris.gemspec
filebeat.inputs:- type: logpaths:- /tmp/doris.dataoutput.logstash:hosts: ["localhost:5044"]
./filebeat -e -c filebeat.yml -d "publish"
./bin/logstash-plugin install logstash-output-doris-0.1.0.gem
input {beats {port => "5044"}}output {doris {http_hosts => [ "http://127.0.0.1:8030" ]user => dorispassword => dorisdb => "logstash_output_test"table => "output"label_prefix => "doris"column_separator => ","columns => "a,b,c,d,e"}}
./bin/logstash -f ./config/logstash-doris.conf --config.reload.automatic
echo a,b,c,d,e >> /tmp/doris.data
Was this page helpful?