Skip to content

Syncronize between mongodb and elasticsearch using logstash

Notifications You must be signed in to change notification settings

Hadeer-Elsaeed/Mongodb-Elasticsearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mongodb-Elasticsearch

This project is a simple demonstration of synchronizing MongoDB and Elasticsearch using Logstash. It includes a Docker Compose file for setting up containers for MongoDB, Logstash, Elasticsearch, and a sample Python application.

Prerequisites

Docker installed on your machine.

Getting Started

1- clone the repository

git clone [email protected]:Hadeer-Elsaeed/Mongodb-Elasticsearch.git 

2- Navigate to the project directory

cd Mongodb-Elasticsearch

3- Start the Docker containers

docker compose up -d 

4- when the container app is up and started adding data in Mongodb, Logstash will automatically pick up the changes and index the data into Elasticsearch.

Folder Structure

  • app: contains the Python application for inserting data into MongoDB.
  • logstash: Contains Logstash configurations for connecting MongoDB and Elasticsearch.
  • docker-compose.yml: Docker Compose file to orchestrate the containers.

About

Syncronize between mongodb and elasticsearch using logstash

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published