No release in over 3 years
Low commit activity in last 3 years
fluent plugin for bulk insert to postgres
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

< 2, >= 0.14.8
>= 0
 Project Readme

fluent-plugin-postgres-bulk

Fluentd output plugin to postgres.

Usage

<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 (...),(...),(...);

Configuration

Fluent::Plugin::PostgresBulkOutput

host (string) (optional)

Database host.

Default value: 127.0.0.1.

port (integer) (optional)

Database port.

Default value: 5432.

database (string) (required)

Database name.

username (string) (required)

Database user.

password (string) (optional) (secret)

Database password.

Default value: (empty).

table (string) (required)

Bulk insert table.

column_names (array) (required)

Bulk insert column.

Installation

RubyGems

$ gem install fluent-plugin-postgres-bulk

Bundler

Add following line to your Gemfile:

gem "fluent-plugin-postgres-bulk"

And then execute:

$ bundle

Require

  • libpq(build pg gem)

Contributing

I need your help.

Copyright

Copyright (c) 2018 Yuki Kurihara.

LISENCE

MIT