1.0.9 • Published 4 years ago

@pastash/output_pgsql v1.0.9

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

Postgres output plugin

Status : core plugin, unit tested and maintained.

This plugin is used insert JSONB data into Postgres.

Config using logstash format:

output {
  if [type] == nginx {
    pgsql {
      db => mydatabase
      table => test
      host => localhost
      port => 5432
    }
  }
}

Parameters:

  • database: name of the postgresql database.
  • table: name of the postgresql table. Defaults to pastash.
  • host: ip of the postgresql server.
  • port: port of the postgresql server.
  • id: JSON object to be used as identifier of inserts. Autogenerated if missing.
  • user: username for postgresql.
  • password: password for postgresql.
  • create_table: create postgresql table upon initialization. Default to false.
CREATE TABLE IF NOT EXISTS pastash (id TEXT NOT NULL PRIMARY KEY, data JSONB NOT NULL);
1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago