# How to create index by ingesting MongoDB data?

**URL:** <https://discuss.elastic.co/t/how-to-create-index-by-ingesting-mongodb-data/235389>\
**Category:** Logstash\
**Created:** [June 2, 2020, 6:10pm UTC](https://discuss.elastic.co/t/how-to-create-index-by-ingesting-mongodb-data/235389 "2020-06-02T18:10:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![FernandoMOTA](https://avatars.discourse-cdn.com/v4/letter/f/c67d28/32.png) [@FernandoMOTA](https://discuss.elastic.co/u/FernandoMOTA)\
**Post date:** [June 2, 2020, 6:10pm UTC](https://discuss.elastic.co/t/how-to-create-index-by-ingesting-mongodb-data/235389/1 "2020-06-02T18:10:33Z")

</div>

All tutorials I used brought me the following error:

```
> D, [2020-06-01T07: 33: 35.814000 # 276] DEBUG -: MONGODB | [202] localhost: 27017 # 1 | example.find | STARTED | {"find" => "movie", "filter" => {"_ id" => {"$ gt" => BSON :: ObjectId ('5ed11391474a8677a9bf3882')}}, "limit" => 5000, "$ db "=>" example "," lsid "=> {" id "=> <BSON :: Binary: 0x2064 type = uuid data = 0xc8d0b628481c4ec2 ...>}}
> D, [2020-06-01T07: 33: 35.838000 # 276] DEBUG -: MONGODB | [202] localhost: 27017 | example.find | SUCCEEDED | 0.015s
> D, [2020-06-01T07: 33: 35.947000 # 276] DEBUG -: MONGODB | [203] localhost: 27017 # 1 | example.listCollections | STARTED | {"listCollections" => 1, "cursor" => {}, "nameOnly" => true, "$ db" => "example", "lsid" => {"id" => <BSON :: Binary: 0x2064 type = uuid data = 0xc8d0b628481c4ec2 ...>}}
> D, [2020-06-01T07: 33: 35.955000 # 276] DEBUG -: MONGODB | [203] localhost: 27017 | example.listCollections | SUCCEEDED | 0.003s
```

---

<div class="post-metadata">

**Author:** ![Matias\_Perrone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matias_perrone/32/70830_2.png) [@Matias\_Perrone](https://discuss.elastic.co/u/Matias_Perrone)\
**Post date:** [June 25, 2020, 6:55pm UTC](https://discuss.elastic.co/t/how-to-create-index-by-ingesting-mongodb-data/235389/2 "2020-06-25T18:55:29Z")

</div>

You should provide your pipeline (no passwords of course), but seems that you want to use a binary field?

---

<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:** [July 23, 2020, 6:55pm UTC](https://discuss.elastic.co/t/how-to-create-index-by-ingesting-mongodb-data/235389/3 "2020-07-23T18:55:32Z")

</div>

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