Skip to content

Instantly share code, notes, and snippets.

View fLipE23's full-sized avatar
🏠
Working from home

Sergey fLipE23

🏠
Working from home
View GitHub Profile
@fLipE23
fLipE23 / logstash-pg-es.md
Created February 3, 2022 11:35 — forked from eriknovak/logstash-pg-es.md
Instructions for setting up the Logstash configuration for synching PostgreSQL with Elasticsearch

Populating Elasticsearch Index with Logstash

Logstash is a free and open server-side data processing pipeline that ingests data from a multitude of sources, transforms it, and then sends it to your favorite "stash."

This section describes how one can use it on UNIX to migrate data from a PostgreSQL database to elasticsearch.

The Prerequisites

const HDWalletProvider = require("truffle-hdwallet-provider");
require('dotenv').config(); // Store environment-specific variable from '.env' to process.env
module.exports = {
/**
* Networks define how you connect to your ethereum client and let you set the
* defaults web3 uses to send transactions. If you don't specify one truffle
* will spin up a development blockchain for you on port 9545 when you
* run `develop` or `test`. You can ask a truffle command to use a specific