Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1014 Bytes

README.md

File metadata and controls

40 lines (29 loc) · 1014 Bytes

Elasticize

Elasticize is a simple way to transfer data from MongoDB to Elasticsearch.

Setup

Use the config.json file to specify the source and destination of your data

{
	"MONGO_DATABASE": "source_mongo_db",
	"MONGO_COLLECTION": "source_mongo_collection",
	"ES_URL": "http://localhost:9200",
	"ES_INDEX": "destination_index",
	"ES_TYPE" : "destination_type"
}

Run

Once the configuration is done, just run:

python elasticize.py

Dependencies

Elasticize is written in Python. So, you need to install Python on your system if not already installed. Other few dependencies are needed as Requests, an http request python library to send request to ES and Pymongo to fetch data from a MongoDB database.

Here's a list of the dependecies needed: