# How to Configure LDAP River to fetch only updated records?

**URL:** <https://discuss.elastic.co/t/how-to-configure-ldap-river-to-fetch-only-updated-records/15373>\
**Category:** Elasticsearch\
**Created:** [January 23, 2014, 4:23am UTC](https://discuss.elastic.co/t/how-to-configure-ldap-river-to-fetch-only-updated-records/15373 "2014-01-23T04:23:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rahul\_Kalra](https://avatars.discourse-cdn.com/v4/letter/r/a87d85/32.png) [@Rahul\_Kalra](https://discuss.elastic.co/u/Rahul_Kalra)\
**Post date:** [January 23, 2014, 4:23am UTC](https://discuss.elastic.co/t/how-to-configure-ldap-river-to-fetch-only-updated-records/15373/1 "2014-01-23T04:23:40Z")

</div>

Hi,

Please help me to identify the correct configuration for LDAP River, so  
that it fetches only \*updated records \*  
in polling after initial full fetch.

I am using below mentioned configuration.  
This fetches all the records from LDAP after 86400s (1 day).

================================================================  
curl -XPUT 'localhost:9200/\_river/my\_ldap\_river1/\_meta' -d '{  
"type" : "ldap",  
"ldap" : {  
"host" : "[lookup-uat.zahoo.com](http://lookup-uat.zahoo.com)",  
"userDn" : "",  
"credentials" : "",  
"baseDn" : "ou=people,o=zahoo",  
"filter" : "(objectClass=person)",  
"poll" : "86400s",  
"scope" : "subtree",  
"attributes" : [  
"zahooDSID",  
"zahooDSID",  
"givenName",  
"zahooLastName",  
"mobile"  
],  
"fields" : [  
"\_id",  
"zahooDSID",  
"firstname",  
"lastname",  
"mobile"  
]  
},  
"index" : {  
"index" : "ldapdata1",  
"type" : "persons1"  
}  
}'

================================================================

Thanks for help in this !!

Regards,  
Rahul

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/922f601f-c8fc-4f86-8e2a-08d85d4a39ea%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/922f601f-c8fc-4f86-8e2a-08d85d4a39ea%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 1:55am UTC](https://discuss.elastic.co/t/how-to-configure-ldap-river-to-fetch-only-updated-records/15373/2 "2017-07-06T01:55:12Z")

</div>

Closed on July 6, 2017, 1:55am UTC


