onsecurity / postgres-to-elasticsearch

Tool to push data from PostgreSQL to Elasticsearch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Postgres-to-elasticsearch

Getting data from PostgreSQL to Elasticsearch, originally designed for audit archiving.

Performs both historic and real-time event driven data streaming.

Prerequisites

  • Node 8+ with npm available
  • Requires the database to use an incremental primary key to work correctly

Getting Started

Review the top of src/index.js for the list of environment variables required.

Each environment variable comes with a comment which explains it's purpose and effect

cd src
npm install
ENV_VARIABLES=todo node index.js

Environment variables

Please see src/index.js for the list of available environment variables.

Deployment

The service may be run directly on a host machine or via docker.

The docker image can be built using:

cd /project/root;
sudo docker build -t mytag/name .

Built With

Versioning

Currently no versioning system

Authors

License

This project is licensed under the GPLv3 License - see the LICENSE.md file for details.

Acknowledgments

About

Tool to push data from PostgreSQL to Elasticsearch

License:GNU General Public License v3.0


Languages

Language:JavaScript 99.3%Language:Dockerfile 0.7%