# Batch process at logstash

**URL:** <https://discuss.elastic.co/t/batch-process-at-logstash/2707>\
**Category:** Logstash\
**Created:** [June 15, 2015, 3:14pm UTC](https://discuss.elastic.co/t/batch-process-at-logstash/2707 "2015-06-15T15:14:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ducheol\_Kim](https://avatars.discourse-cdn.com/v4/letter/d/8edcca/32.png) [@Ducheol\_Kim](https://discuss.elastic.co/u/Ducheol_Kim)\
**Post date:** [June 15, 2015, 3:14pm UTC](https://discuss.elastic.co/t/batch-process-at-logstash/2707/1 "2015-06-15T15:14:40Z")

</div>

Hi All.

I got a lot of help from here and Thanks for whole help.  
I have another dump question.

Is it possible to do batch process at logstash ?

Below is my situation.

We are researching replace river to logstash and consider to use DB trigger to fire up re-indexing.  
As you know, trigger is fired row-based, so multiple re-indexing message could be triggered for one transaction.

So we need to remove whole redundant re-indexing message and work only for final message.

As I check the logstash, it work as realtime.  
But is it possible to run it as queue ( MQ ) to store some messages and do batch processing ( Eliminate some redundant message and work with only final message )?

Thanks  
Ducheol

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 15, 2015, 10:57pm UTC](https://discuss.elastic.co/t/batch-process-at-logstash/2707/2 "2015-06-15T22:57:56Z")

</div>

Logstash is not a queue so you cannot treat it like one. You could implement a queue in front of it, push your changes to that and have LS constantly running and watching.

Otherwise you can treat LS as any other batch process and schedule a run of it.

---

<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, 5:37am UTC](https://discuss.elastic.co/t/batch-process-at-logstash/2707/3 "2017-07-06T05:37:25Z")

</div>


