pyloggr.main.shipper2pgsql

Ship events to a PostgreSQL database

class PostgresqlShipper(rabbitmq_config, pgsql_config)[source]

Bases: object

PostgresqlShipper retrieves events from RabbitMQ, and inserts them in PostgreSQL

launch(*args, **kwargs)[source]

Starts the shipper

  • Opens a connection to RabbitMQ
  • Opens a pool to PostgreSQL
  • Consumes messages from RabbitMQ
  • Parses messages as regular syslog events
  • Periodically ships the events to PostgreSQL
shutdown(*args, **kwargs)[source]

Shutdowns (stops definitely) the shipper.

stop(*args, **kwargs)[source]

Stops the shipper