# Logstash Bulk Indexing

**URL:** <https://discuss.elastic.co/t/logstash-bulk-indexing/153924>\
**Category:** Logstash\
**Created:** [October 25, 2018, 6:55am UTC](https://discuss.elastic.co/t/logstash-bulk-indexing/153924 "2018-10-25T06:55:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Panda8](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/panda8/32/69427_2.png) [@Panda8](https://discuss.elastic.co/u/Panda8)\
**Post date:** [October 25, 2018, 6:55am UTC](https://discuss.elastic.co/t/logstash-bulk-indexing/153924/1 "2018-10-25T06:55:15Z")

</div>

Hello Community,

I am new to Logstash and I was looking through the Logstash documentation for support of Bulk Indexing in elasticsearch output plugin. I got one config "bulk\_path" related to this. But I am unable to understand the working of bulk indexing via elastic search output plugin. Also what configurations are needed to be done for implementing it.  
It would be great help if anyone could provide a sample bulk indexing pipeline configuration of Logstash.

Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [October 25, 2018, 8:06am UTC](https://discuss.elastic.co/t/logstash-bulk-indexing/153924/2 "2018-10-25T08:06:46Z")

</div>

The elasticsearch output plugin uses bulk requests by default, so no additional configuration is required.

---

<div class="post-metadata">

**Author:** ![Panda8](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/panda8/32/69427_2.png) [@Panda8](https://discuss.elastic.co/u/Panda8)\
**Post date:** [October 25, 2018, 8:44am UTC](https://discuss.elastic.co/t/logstash-bulk-indexing/153924/3 "2018-10-25T08:44:20Z")

</div>

Then what does the configuration 'bulk\_path' do ?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [October 25, 2018, 8:45am UTC](https://discuss.elastic.co/t/logstash-bulk-indexing/153924/4 "2018-10-25T08:45:25Z")

</div>

Not sure when it would be used as I have never used it myself.

---

<div class="post-metadata">

**Author:** ![Panda8](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/panda8/32/69427_2.png) [@Panda8](https://discuss.elastic.co/u/Panda8)\
**Post date:** [October 25, 2018, 8:46am UTC](https://discuss.elastic.co/t/logstash-bulk-indexing/153924/5 "2018-10-25T08:46:42Z")

</div>

Ok. And can we tweak the batch size of bulk request. ? Which is 20mb by default (as per documentation) .

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [October 25, 2018, 8:51am UTC](https://discuss.elastic.co/t/logstash-bulk-indexing/153924/6 "2018-10-25T08:51:14Z")

</div>

The bulk size is typically limited by the [pipeline.batch.size parameter](https://www.elastic.co/guide/en/logstash/6.4/tuning-logstash.html) as well by the batch size described in the docs. Not sure the latter one can be tuned, but you should not generally use batches larger than 20mb anyway.

---

<div class="post-metadata">

**Author:** ![Panda8](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/panda8/32/69427_2.png) [@Panda8](https://discuss.elastic.co/u/Panda8)\
**Post date:** [October 25, 2018, 8:54am UTC](https://discuss.elastic.co/t/logstash-bulk-indexing/153924/7 "2018-10-25T08:54:50Z")

</div>

Thank you for your support . 🙂

---

<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:** [November 22, 2018, 9:02am UTC](https://discuss.elastic.co/t/logstash-bulk-indexing/153924/8 "2018-11-22T09:02:31Z")

</div>

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