# Logstash - update or delete records after fetching in db2luw work table

**URL:** <https://discuss.elastic.co/t/logstash-update-or-delete-records-after-fetching-in-db2luw-work-table/161417>\
**Category:** Logstash\
**Created:** [December 18, 2018, 9:35pm UTC](https://discuss.elastic.co/t/logstash-update-or-delete-records-after-fetching-in-db2luw-work-table/161417 "2018-12-18T21:35:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Florian\_B1](https://avatars.discourse-cdn.com/v4/letter/f/839c29/32.png) [@Florian\_B1](https://discuss.elastic.co/u/Florian_B1)\
**Post date:** [December 18, 2018, 9:35pm UTC](https://discuss.elastic.co/t/logstash-update-or-delete-records-after-fetching-in-db2luw-work-table/161417/1 "2018-12-18T21:35:49Z")

</div>

We have following set up: data for elasticsearch is offered in a work table. There we get the records with insert/update/delete and fetch these records via logstash.

Thats working. But how can we delete/update the processed records via logstash? If we had the chance to delete the just successfully updated record in the worktable via logstash-is there a way? Please also suggest other solutions...

Best solution would be: logstash fetches 10 records, the 10 records get included in the index, the 10 records are deleted in the work table...

Thanks and regards,  
Florian

---

<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:** [January 15, 2019, 9:35pm UTC](https://discuss.elastic.co/t/logstash-update-or-delete-records-after-fetching-in-db2luw-work-table/161417/2 "2019-01-15T21:35:53Z")

</div>

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