# Filebeat High CPU consumption on two of four hosts

**URL:** <https://discuss.elastic.co/t/filebeat-high-cpu-consumption-on-two-of-four-hosts/183399>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 29, 2019, 5:52pm UTC](https://discuss.elastic.co/t/filebeat-high-cpu-consumption-on-two-of-four-hosts/183399 "2019-05-29T17:52:03Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![vasek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vasek/32/136636_2.png) [@vasek](https://discuss.elastic.co/u/vasek)\
**Post date:** [June 17, 2019, 7:48am UTC](https://discuss.elastic.co/t/filebeat-high-cpu-consumption-on-two-of-four-hosts/183399/3 "2019-06-17T07:48:36Z")

</div>

I have some solutions for you:

**1) Download log files to non-production environment**  
By non-production environment I mean a server that does not negatively affect the service.

Use FB (filebeat) for sending these big files to your Log Management. You can use this [tutorial](https://discuss.elastic.co/t/filebeat-on-demand-loading-compressed-gz-files-from-stdin/184159).

**2) CPU load by filebeat with respect to running application**  
You can set lowest priority of consuming CPU for Filebeat service. [Lowest priority is 19](https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_MRG/1.2/html/Realtime_Reference_Guide/chap-Realtime_Reference_Guide-Priorities_and_policies.html).

```
vim /usr/lib/systemd/system/filebeat.service
[Service]
Nice=19

```

This is very useful in production environment.

Hope it will be useful for you.

---

_[View the full topic](https://discuss.elastic.co/t/filebeat-high-cpu-consumption-on-two-of-four-hosts/183399)._
