Migration from MongoDB to Elasticsearch
Created by Seokje Park at 2020.02.21
keyword
mongodb to elasticsearch
migratino
We will sync mongoDB with Elasticsearch
MongoDB upgrade 3.6 to 4.0
I followed this instructions.
If you come out as below, you have succeeded.
Setup Replica set on a single machine
Referenced here.
sudo killall -15 mongod
: Kill all mongod process. (Use it if you want to upgrade or restart mongod)--fork --logpath /var/log/mongod0.log
: Commands to Run mongod as Daemons.ps -edaf | grep mongo | grep -v grep
: Command to check the running mongod process.
Install Golang-go
Download Monstache & upzip
Export your path to the .profile
Add the following lines
Test
Setup monstache config
More options can be found here.
{Any path}/config.toml
The above config needs futher investigation.
Start Synchronize MonogoDB to Elasticsearch using monstache
Security
When you apply Elasticsearch basic authentication later, you must make the following changes.
See more about elasticsearch security Setting Elaticsearch and Kibana.
Reference site
Last updated