# Filebeat consume high CPU usage

**URL:** <https://discuss.elastic.co/t/filebeat-consume-high-cpu-usage/326152>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 22, 2023, 9:54am UTC](https://discuss.elastic.co/t/filebeat-consume-high-cpu-usage/326152 "2023-02-22T09:54:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jalin](https://avatars.discourse-cdn.com/v4/letter/j/aca169/32.png) [@Jalin](https://discuss.elastic.co/u/Jalin)\
**Post date:** [February 22, 2023, 9:54am UTC](https://discuss.elastic.co/t/filebeat-consume-high-cpu-usage/326152/1 "2023-02-22T09:54:49Z")

</div>

Filebeat consume high CPU usage (about 25%) when processing logs and scanning files.

Here is my environment:

- Windows 10 Pro 64-bit
- 4 core

Here is my configuration:

```auto
filebeat.inputs:
  - type: log
    id: log
    enabled: true
    paths:
      - C:/Packages/Test/log/**/*.elklog
    harvester_limit: 1
    close_inactive: 1s
    scan_frequency: 5s

    # close_eof: true
    # close_timeout: 0.5s
    multiline:
      type: pattern
      pattern: ^\[
      negate: true
      match: after

max_procs: 1

// hide other processors and output.elasticsearch
// If need more information, please tell me

```

CPU usage shown as below:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/8/382935d7e2e87d4342dee604b7496ebaf3968682.png)

How to control CPU usage below 10%?  
No need to harvest real time. Send slower, CPU lower.

Thanks

---

<div class="post-metadata">

**Author:** ![Jalin](https://avatars.discourse-cdn.com/v4/letter/j/aca169/32.png) [@Jalin](https://discuss.elastic.co/u/Jalin)\
**Post date:** [March 6, 2023, 2:00am UTC](https://discuss.elastic.co/t/filebeat-consume-high-cpu-usage/326152/2 "2023-03-06T02:00:30Z")

</div>

Any advise for the high CPU usage?

---

<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:** [April 3, 2023, 4:00am UTC](https://discuss.elastic.co/t/filebeat-consume-high-cpu-usage/326152/3 "2023-04-03T04:00:58Z")

</div>

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