# Filebeat low performance with multiple input files

**URL:** <https://discuss.elastic.co/t/filebeat-low-performance-with-multiple-input-files/173933>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 26, 2019, 1:06pm UTC](https://discuss.elastic.co/t/filebeat-low-performance-with-multiple-input-files/173933 "2019-03-26T13:06:07Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Naxo](https://avatars.discourse-cdn.com/v4/letter/n/3ec8ea/32.png) [@Naxo](https://discuss.elastic.co/u/Naxo)\
**Post date:** [March 26, 2019, 1:06pm UTC](https://discuss.elastic.co/t/filebeat-low-performance-with-multiple-input-files/173933/1 "2019-03-26T13:06:07Z")

</div>

Hi everyone,  
I have tried several configurations in the filebeat service but I cannot see a good performance. When I use a single input file we can see a high network throutput and logstash and elasticsearch do a good data processing.  
However, when we use multiple intput files for filebeat the overall performance gets worse.  
This is the parameter configuration we are using for multiple filebeat inputs:

filebeat.spool\_size: 6144  
queue.mem:  
events: 131072

#----------------------------- Logstash output --------------------------------  
output.logstash:

# The Logstash hosts

hosts: ["XXXX:5045", "XXXX:5045"]  
loadbalance: true  
worker: 4  
pipelining: 0  
ttl: 2s  
bulk\_max\_size: 4096

Thanks for your help

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [March 28, 2019, 8:21am UTC](https://discuss.elastic.co/t/filebeat-low-performance-with-multiple-input-files/173933/2 "2019-03-28T08:21:12Z")

</div>

Could you please share your full configuration formatted using `</>`?

---

<div class="post-metadata">

**Author:** ![Naxo](https://avatars.discourse-cdn.com/v4/letter/n/3ec8ea/32.png) [@Naxo](https://discuss.elastic.co/u/Naxo)\
**Post date:** [March 28, 2019, 9:12am UTC](https://discuss.elastic.co/t/filebeat-low-performance-with-multiple-input-files/173933/3 "2019-03-28T09:12:14Z")

</div>

This is my filebeat.yml

> ```
> #=========================== Filebeat inputs =============================
> filebeat.config.inputs:
> enabled: true
> path: inputs.d/*.yml
> reload.enabled: true
> reload.period: 10s
> #============================= Filebeat modules ===============================
> filebeat.config.modules:
> path: ${path.config}/modules.d/*.yml
> reload.enabled: false
> #================================ General =====================================
> filebeat.spool_size: 6144
> queue.mem:
> events: 131072
> #================================ Outputs =====================================
> #----------------------------- Logstash output --------------------------------
> output.logstash:
> hosts: ["X.X.X.X:5045", "Y.Y.Y.Y:5045"]
> loadbalance: true
> worker: 4
> pipelining: 0
> ttl: 2s
> bulk_max_size: 4096
> 
> ```

And I have 12 .yml files under inputs.d folder with this structure:

> ```
> - type: log
> enabled: true
> paths:
> - /folder/log/service/*.log
> fields_under_root: true
> fields: {type: service}
> 
> ```

Thanks

---

<div class="post-metadata">

**Author:** ![Naxo](https://avatars.discourse-cdn.com/v4/letter/n/3ec8ea/32.png) [@Naxo](https://discuss.elastic.co/u/Naxo)\
**Post date:** [March 28, 2019, 9:30am UTC](https://discuss.elastic.co/t/filebeat-low-performance-with-multiple-input-files/173933/4 "2019-03-28T09:30:18Z")

</div>

The filebeat's version is 6.4.3

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [March 28, 2019, 12:23pm UTC](https://discuss.elastic.co/t/filebeat-low-performance-with-multiple-input-files/173933/5 "2019-03-28T12:23:03Z")

</div>

I don't see anything in your configuration which would lead to degraded performance.  
What is your expectation regarding events/sec?  
Could you please provide the debug logs of Filebeat? Do you see any errors in Logstash?

---

<div class="post-metadata">

**Author:** ![Naxo](https://avatars.discourse-cdn.com/v4/letter/n/3ec8ea/32.png) [@Naxo](https://discuss.elastic.co/u/Naxo)\
**Post date:** [March 28, 2019, 1:13pm UTC](https://discuss.elastic.co/t/filebeat-low-performance-with-multiple-input-files/173933/6 "2019-03-28T13:13:06Z")

</div>

When I configure one input file for filebeat, I see up to 35Mbps (around 3300 paquets/sec) and when add more files I only get around 1Mbps (70 paquets/sec).

How do I get debug logs for filebeat? filebeat - e - d "\*" ?

I don't get any errors in Logstash.

thanks

---

<div class="post-metadata">

**Author:** ![Naxo](https://avatars.discourse-cdn.com/v4/letter/n/3ec8ea/32.png) [@Naxo](https://discuss.elastic.co/u/Naxo)\
**Post date:** [April 8, 2019, 11:21am UTC](https://discuss.elastic.co/t/filebeat-low-performance-with-multiple-input-files/173933/7 "2019-04-08T11:21:48Z")

</div>

Any news about this bug?

thanks

---

<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:** [May 6, 2019, 11:22am UTC](https://discuss.elastic.co/t/filebeat-low-performance-with-multiple-input-files/173933/8 "2019-05-06T11:22:05Z")

</div>

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