Elasticize is a simple way to transfer data from MongoDB to Elasticsearch.
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"
}
Once the configuration is done, just run:
python elasticize.py
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: