Fluentd output plugin to postgres.
<match **>
@type postgres_bulk
host my-host-name.local
port 5432
username ksss
password password
table any
column_names id,col1,col2,col3
</match>
Plugin build and exec query to postgres like this
INSERT INTO #{@table} (#{column_names}) VALUES (...),(...),(...);
- See also: Output Plugin Overview
Database host.
Default value: 127.0.0.1
.
Database port.
Default value: 5432
.
Database name.
Database user.
Database password.
Default value: (empty)
.
Bulk insert table.
Bulk insert column.
$ gem install fluent-plugin-postgres-bulk
Add following line to your Gemfile:
gem "fluent-plugin-postgres-bulk"
And then execute:
$ bundle
- libpq(build pg gem)
I need your help.
Copyright (c) 2018 Yuki Kurihara.
MIT