# Help needed for logstash pipeline.yml settings

**URL:** <https://discuss.elastic.co/t/help-needed-for-logstash-pipeline-yml-settings/233583>\
**Category:** Logstash\
**Created:** [May 20, 2020, 5:24pm UTC](https://discuss.elastic.co/t/help-needed-for-logstash-pipeline-yml-settings/233583 "2020-05-20T17:24:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![annk](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@annk](https://discuss.elastic.co/u/annk)\
**Post date:** [May 20, 2020, 5:24pm UTC](https://discuss.elastic.co/t/help-needed-for-logstash-pipeline-yml-settings/233583/1 "2020-05-20T17:24:10Z")

</div>

Hi,

I have around 5 pipelines running on a logstash node sending output to elasticsearch (4 node cluster).  
two of the pipelines require high throughput in some scenarios .  
usually we received around 1000 events/ sec each in pipeline a & b . In some cases we get storms and received around 8000+ events/s (this could go upto 20,000 events/s) ,

this is my pipeline.yml setting

- pipeline.id: a  
pipeline.workers: 10  
pipeline.batch.size: 1000  
pipeline.batch.delay: 10
- pipeline.id: b  
pipeline.workers: 10  
pipeline.batch.size: 1000  
pipeline.batch.delay: 10

This is fine during normal times but during a storm we get large queues and delays in indexing.  
How do I set these pipeline settings to get max thoughput from logstash.

Thanks  
Anu

---

<div class="post-metadata">

**Author:** ![annk](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@annk](https://discuss.elastic.co/u/annk)\
**Post date:** [May 20, 2020, 5:27pm UTC](https://discuss.elastic.co/t/help-needed-for-logstash-pipeline-yml-settings/233583/2 "2020-05-20T17:27:44Z")

</div>

I tried increasing the workers and batchsize but it tend to overwhelm my elasticsearch nodes and I get SocketException mentioned on this thread: [https://github.com/logstash-plugins/logstash-output-elasticsearch/issues/498](https://github.com/logstash-plugins/logstash-output-elasticsearch/issues/498)

---

<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:** [June 17, 2020, 5:28pm UTC](https://discuss.elastic.co/t/help-needed-for-logstash-pipeline-yml-settings/233583/3 "2020-06-17T17:28:00Z")

</div>

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