# Logstash consuming too much bandwidth

**URL:** https://discuss.elastic.co/t/logstash-consuming-too-much-bandwidth/190593
**Category:** Logstash
**Created:** [July 15, 2019, 5:58pm UTC](https://discuss.elastic.co/t/logstash-consuming-too-much-bandwidth/190593 "2019-07-15T17:58:30Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Jitendra\_Kumhar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jitendra_kumhar/32/48640_2.png) [@Jitendra\_Kumhar](https://discuss.elastic.co/u/Jitendra_Kumhar)
#### Post date: [July 15, 2019, 5:58pm UTC](https://discuss.elastic.co/t/logstash-consuming-too-much-bandwidth/190593/1 "2019-07-15T17:58:30Z")

</div>

Hello,  
I am sending logs from filebeat to Logstash and then from logstash to ElasticSearch.  
The problem is Logstash is consuming too much bandwidth.I have attached network usage graph of logstash server.  
(green is incoming from filebeat)

 ![50%20PM](https://us1.discourse-cdn.com/elastic/original/3X/f/e/fe5c14a09a468b032046507a1b1726271ec5e667.png)  
In the starting I am just writing to file on Logstash server instead of sending to ElasticSearch.You can see the incoming rate.Then when I turn on ElasticSearch output.The incoming rate decreases and also outgoing is 10 times more data.  
Can anyone help please.What configurations changes or hardware improvements should I make?

---

<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: [July 15, 2019, 6:11pm UTC](https://discuss.elastic.co/t/logstash-consuming-too-much-bandwidth/190593/2 "2019-07-15T18:11:07Z")

</div>

You may want to enable [http\_compression](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html) for the Elasticsearch output if you have not already.

---

<div class="post-metadata">

### Author: ![Jitendra\_Kumhar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jitendra_kumhar/32/48640_2.png) [@Jitendra\_Kumhar](https://discuss.elastic.co/u/Jitendra_Kumhar)
#### Post date: [July 15, 2019, 6:36pm UTC](https://discuss.elastic.co/t/logstash-consuming-too-much-bandwidth/190593/3 "2019-07-15T18:36:29Z")

</div>

Thank You for the reply  
But why is my incoming data rate reduced when elasticsearch output is enabled?

---

<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: [July 15, 2019, 6:47pm UTC](https://discuss.elastic.co/t/logstash-consuming-too-much-bandwidth/190593/4 "2019-07-15T18:47:43Z")

</div>

Maybe Elasticsearch is not able to keep up, which results in back pressure being applied?

---

<div class="post-metadata">

### Author: ![Jitendra\_Kumhar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jitendra_kumhar/32/48640_2.png) [@Jitendra\_Kumhar](https://discuss.elastic.co/u/Jitendra_Kumhar)
#### Post date: [July 16, 2019, 7:12pm UTC](https://discuss.elastic.co/t/logstash-consuming-too-much-bandwidth/190593/5 "2019-07-16T19:12:17Z")

</div>

Currently I have 1 ingest node,1 master node and 2 data nodes.  
I added persistent queues in logstash of 30 gb.They gets filled up quickly.  
So the reason is mostly back pressure by ElasticSearch.  
Do you have any suggestion how do I handle this?

---

<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: [July 16, 2019, 7:14pm UTC](https://discuss.elastic.co/t/logstash-consuming-too-much-bandwidth/190593/6 "2019-07-16T19:14:04Z")

</div>

I would recommend adding resources to the Elasticsearch cluster. What is the current hardware specification?

---

<div class="post-metadata">

### Author: ![Jitendra\_Kumhar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jitendra_kumhar/32/48640_2.png) [@Jitendra\_Kumhar](https://discuss.elastic.co/u/Jitendra_Kumhar)
#### Post date: [July 16, 2019, 7:41pm UTC](https://discuss.elastic.co/t/logstash-consuming-too-much-bandwidth/190593/7 "2019-07-16T19:41:23Z")

</div>

**Ingest node:**

> Model name: Intel(R) Xeon(R) Platinum 8124M CPU @ 3.00GHz  
> Stepping: 3  
> CPU MHz: 3000.000  
> BogoMIPS: 6000.00  
> Hypervisor vendor: KVM  
> Virtualization type: full  
> L1d cache: 32K  
> L1i cache: 32K  
> L2 cache: 1024K  
> L3 cache: 25344K

`Ram : 3.549 GB`

`Total disk : 31 GB`

**Data Node(2 x):**

`Ram : 31.548 GB`  
`Total disk : 2.3 TB`  
**Master Node**

`Ram : 3.549 GB`

`Total disk : 31 GB`

---

<div class="post-metadata">

### Author: ![Jitendra\_Kumhar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jitendra_kumhar/32/48640_2.png) [@Jitendra\_Kumhar](https://discuss.elastic.co/u/Jitendra_Kumhar)
#### Post date: [July 22, 2019, 6:15pm UTC](https://discuss.elastic.co/t/logstash-consuming-too-much-bandwidth/190593/8 "2019-07-22T18:15:42Z")

</div>

Any suggestion?

---

<div class="post-metadata">

### Author: ![rugenl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rugenl/32/12887_2.png) [@rugenl](https://discuss.elastic.co/u/rugenl)
#### Post date: [July 22, 2019, 6:20pm UTC](https://discuss.elastic.co/t/logstash-consuming-too-much-bandwidth/190593/9 "2019-07-22T18:20:15Z")

</div>

Look at the logs @18:04, when the lines crossed. How many events per second were ingesting before that time?

I think you need to determine if you have an ingest error condition before assuming it's a capacity issue.

---

<div class="post-metadata">

### Author: ![Jitendra\_Kumhar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jitendra_kumhar/32/48640_2.png) [@Jitendra\_Kumhar](https://discuss.elastic.co/u/Jitendra_Kumhar)
#### Post date: [July 22, 2019, 6:55pm UTC](https://discuss.elastic.co/t/logstash-consuming-too-much-bandwidth/190593/10 "2019-07-22T18:55:28Z")

</div>

How do I check how many events ingested at that time ?

---

<div class="post-metadata">

### Author: ![rugenl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rugenl/32/12887_2.png) [@rugenl](https://discuss.elastic.co/u/rugenl)
#### Post date: [July 24, 2019, 3:55pm UTC](https://discuss.elastic.co/t/logstash-consuming-too-much-bandwidth/190593/11 "2019-07-24T15:55:08Z")

</div>

Kibana monitoring, if you had it enabled.

---

<div class="post-metadata">

### Author: ![Jitendra\_Kumhar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jitendra_kumhar/32/48640_2.png) [@Jitendra\_Kumhar](https://discuss.elastic.co/u/Jitendra_Kumhar)
#### Post date: [July 29, 2019, 5:17pm UTC](https://discuss.elastic.co/t/logstash-consuming-too-much-bandwidth/190593/12 "2019-07-29T17:17:08Z")

</div>

Hey,  
I enabled http\_compression on logstash.  
Now that machines network monitoring looks like this

 ![26%20PM](https://us1.discourse-cdn.com/elastic/original/3X/9/1/91ea2f997a1d247d255bf0cd165f773ca907e3f2.png)

The graph is MiB per minute  
Green is receiving and yellow is transmitting.I don't understand why it is exactly asymmetric.I have done speed test on this machine and it can give speed upto 500 Mb/s download and 500 Mb/s upload speed.

---

<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: [August 26, 2019, 5:17pm UTC](https://discuss.elastic.co/t/logstash-consuming-too-much-bandwidth/190593/13 "2019-08-26T17:17:16Z")

</div>

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