# Unable to register last access file

**URL:** <https://discuss.elastic.co/t/unable-to-register-last-access-file/97873>\
**Category:** Logstash\
**Created:** [August 22, 2017, 8:24am UTC](https://discuss.elastic.co/t/unable-to-register-last-access-file/97873 "2017-08-22T08:24:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jogoinar10](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jogoinar10/32/20068_2.png) [@jogoinar10](https://discuss.elastic.co/u/jogoinar10)\
**Post date:** [August 22, 2017, 8:24am UTC](https://discuss.elastic.co/t/unable-to-register-last-access-file/97873/1 "2017-08-22T08:24:57Z")

</div>

I observed that when I use elasticsearch as Input in logstash, it does not register the last instance it sends.  
Ex. my server got disconnected, so it will start to overwrite again the data.  
Another thing is that if my input is elasticsearch, if there';s a new data input in elasticsearch, it started all over again.

I don't know if this is right, it is just based on my observation.  
Any inputs from you are so much welcome and truly appreciated.

---

<div class="post-metadata">

**Author:** ![jogoinar10](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jogoinar10/32/20068_2.png) [@jogoinar10](https://discuss.elastic.co/u/jogoinar10)\
**Post date:** [August 23, 2017, 5:23am UTC](https://discuss.elastic.co/t/unable-to-register-last-access-file/97873/2 "2017-08-23T05:23:10Z")

</div>

up ❤

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 23, 2017, 9:27pm UTC](https://discuss.elastic.co/t/unable-to-register-last-access-file/97873/3 "2017-08-23T21:27:36Z")

</div>

This is exactly how the elasticsearch input works. Unlike the file and jdbc inputs it doesn't keep track of what it already has processed.

---

<div class="post-metadata">

**Author:** ![jogoinar10](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jogoinar10/32/20068_2.png) [@jogoinar10](https://discuss.elastic.co/u/jogoinar10)\
**Post date:** [August 24, 2017, 1:32am UTC](https://discuss.elastic.co/t/unable-to-register-last-access-file/97873/4 "2017-08-24T01:32:44Z")

</div>

Thanks for your reply @magnusbaeck.

---

<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:** [September 21, 2017, 1:33am UTC](https://discuss.elastic.co/t/unable-to-register-last-access-file/97873/5 "2017-09-21T01:33:18Z")

</div>

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