# Filebeat use too many cpu times to gzip

**URL:** <https://discuss.elastic.co/t/filebeat-use-too-many-cpu-times-to-gzip/308163>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [June 25, 2022, 12:10pm UTC](https://discuss.elastic.co/t/filebeat-use-too-many-cpu-times-to-gzip/308163 "2022-06-25T12:10:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrLiukang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mrliukang/32/107573_2.png) [@MrLiukang](https://discuss.elastic.co/u/MrLiukang)\
**Post date:** [June 25, 2022, 12:10pm UTC](https://discuss.elastic.co/t/filebeat-use-too-many-cpu-times-to-gzip/308163/1 "2022-06-25T12:10:24Z")

</div>

hey guys.  
I found my filebeat send msg too slow,so I use two commands to profile filebeat,  
`perf record -a -g -p xxx`  
`perf report -n --stdio`

the result show the filebeat use lots of cpu times to gzip msg?  
can we reduce this time?

 ![WechatIMG26551](https://us1.discourse-cdn.com/elastic/original/3X/7/f/7f952fc654875ce9e6a21d95ba3df2fefc89549e.png)

---

<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:** [July 23, 2022, 2:10pm UTC](https://discuss.elastic.co/t/filebeat-use-too-many-cpu-times-to-gzip/308163/2 "2022-07-23T14:10:42Z")

</div>

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