# Elasticsearch pointer doesn't work

**URL:** <https://discuss.elastic.co/t/elasticsearch-pointer-doesnt-work/148278>\
**Category:** Elasticsearch\
**Created:** [September 12, 2018, 8:31am UTC](https://discuss.elastic.co/t/elasticsearch-pointer-doesnt-work/148278 "2018-09-12T08:31:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NIloufarVafaei](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@NIloufarVafaei](https://discuss.elastic.co/u/NIloufarVafaei)\
**Post date:** [September 12, 2018, 8:31am UTC](https://discuss.elastic.co/t/elasticsearch-pointer-doesnt-work/148278/1 "2018-09-12T08:31:55Z")

</div>

hi  
i try to send one of my collection in mongodb data base to elastic search .actually elasticsearch read data over and over ,so how can i solve this and it is my conf file in logstash  
input {  
mongodb {  
uri =\> 'mongodb://_ **@127.0.0.1:/** _\*\*'  
placeholder\_db\_dir =\> '/tmp'  
placeholder\_db\_name =\> 'sincedb.db'  
collection =\> 'tariffs'  
batch\_size =\> 5000  
}  
}

filter {  
date {  
match =\> ["logdate", "ISO8601"]  
}  
}

output {  
elasticsearch {  
action =\>"update"  
doc\_as\_upsert =\> true  
hosts =\> [" **.**.\ ***.** :9200"]  
index =\> "tariffs"  
document\_id =\> "%{mongo\_id}"  
}  
stdout { codec =\> rubydebug}  
}

---

<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:** [October 10, 2018, 8:31am UTC](https://discuss.elastic.co/t/elasticsearch-pointer-doesnt-work/148278/2 "2018-10-10T08:31:55Z")

</div>

Closed on October 10, 2018, 8:31am UTC

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