# Update counter while reading logs

**URL:** <https://discuss.elastic.co/t/update-counter-while-reading-logs/90352>\
**Category:** Logstash\
**Created:** [June 21, 2017, 7:23pm UTC](https://discuss.elastic.co/t/update-counter-while-reading-logs/90352 "2017-06-21T19:23:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![THILAK\_thilz](https://avatars.discourse-cdn.com/v4/letter/t/a8b319/32.png) [@THILAK\_thilz](https://discuss.elastic.co/u/THILAK_thilz)\
**Post date:** [June 21, 2017, 7:23pm UTC](https://discuss.elastic.co/t/update-counter-while-reading-logs/90352/1 "2017-06-21T19:23:15Z")

</div>

I am trying to update document while reading logs,

If I get a same log again the document field counter should be update by 1.

I need the syntax for the conf file. Please help

---

<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 19, 2017, 7:23pm UTC](https://discuss.elastic.co/t/update-counter-while-reading-logs/90352/2 "2017-07-19T19:23:35Z")

</div>

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