# Using mongo connector to sync collections between mongo and ES 7

**URL:** https://discuss.elastic.co/t/using-mongo-connector-to-sync-collections-between-mongo-and-es-7/216822
**Category:** Elasticsearch
**Created:** [January 28, 2020, 11:11am UTC](https://discuss.elastic.co/t/using-mongo-connector-to-sync-collections-between-mongo-and-es-7/216822 "2020-01-28T11:11:51Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![gidgid](https://avatars.discourse-cdn.com/v4/letter/g/b77776/32.png) [@gidgid](https://discuss.elastic.co/u/gidgid)
#### Post date: [January 28, 2020, 11:11am UTC](https://discuss.elastic.co/t/using-mongo-connector-to-sync-collections-between-mongo-and-es-7/216822/1 "2020-01-28T11:11:51Z")

</div>

Hi,  
We're been using Mongo 3.4 and ES 2.4 and syncing them using [Mongo Connector](https://github.com/yougov/mongo-connector/wiki). We're finally upgrading our ES to 7.5. Reading online it seems that Mongo Connector doesnt work with versions that are higher than 5.x and so my questions are:

1. Can we still use Mongo Connector with the latest ES version (currently 7.5.2)?
2. If not, what are the recommended alternatives?

Thanks

---

<div class="post-metadata">

### Author: ![ropc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ropc/32/47022_2.png) [@ropc](https://discuss.elastic.co/u/ropc)
#### Post date: [January 30, 2020, 4:51am UTC](https://discuss.elastic.co/t/using-mongo-connector-to-sync-collections-between-mongo-and-es-7/216822/2 "2020-01-30T04:51:05Z")

</div>

@gidgid, let me try to answer your questions.

1. [Mongo Connector](https://github.com/yougov/mongo-connector) is not developed by Elastic - this is a third-party MongoDB Connector. As such, Elastic cannot provide any support. There is an [existing issue](https://github.com/yougov/mongo-connector/issues/888) requesting for support for Elasticsearch 7.x. You may want to collaborate there and subscribe to this issue for further updates.

2. You might come across the `logtash-input-mongodb` [plugin](https://github.com/phutchins/logstash-input-mongodb) which is also available in [RubyGems](https://rubygems.org/gems/logstash-input-mongodb). This is a community plugin and it is not supported by Elastic. From the GitHub repository, there is no activity since 2017 so I am not sure whether this would work with Logstash / Elasticsearch 7.x. You can refer to our [support matrix](https://www.elastic.co/support/matrix#matrix_logstash_plugins) for the list of plugins supported by Elastic.

3. Some other alternatives:

- Use [MongoDB Connector for Apache Kafka](https://www.mongodb.com/kafka-connector) and use Logstash with [Kafka input plugin](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-kafka.html). This may be worth taking a look.
- I also came accross this [Discuss post](https://discuss.elastic.co/t/mongodb-logstash-integration-solved/122299) where a community user was using Logstash with the [JDBC input plugin](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-jdbc.html). However, this could come with its own set of challenges as described in the post.

I hope that helps.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [February 27, 2020, 4:51am UTC](https://discuss.elastic.co/t/using-mongo-connector-to-sync-collections-between-mongo-and-es-7/216822/3 "2020-02-27T04:51:13Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
