a go daemon which syncs mongodb to elasticsearch in near realtime
You can download monstache binaries from the Releases page.
Or you can build monstache from source using go get
go get github.com/rwynn/monstache
Since monstache uses the mongodb oplog to tail events it is required that mongodb is configured to produce an oplog.
This can be ensured by doing one of the following:
-
Setting up replica sets
-
Passing --master to the mongod process
-
Setting the following in /etc/mongod.conf
master = true
You will also want to ensure that automatic index creation is not disabled in elasticsearch.yml.
monstache is not bi-directional. It only syncs from mongodb to elasticsearch.
See the monstache site for information on configuration and usage.