# Logstash cpu usage is very high

**URL:** https://discuss.elastic.co/t/logstash-cpu-usage-is-very-high/351619
**Category:** Logstash
**Created:** [January 23, 2024, 10:52am UTC](https://discuss.elastic.co/t/logstash-cpu-usage-is-very-high/351619 "2024-01-23T10:52:19Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Manoj\_Sangwan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/manoj_sangwan/32/131031_2.png) [@Manoj\_Sangwan](https://discuss.elastic.co/u/Manoj_Sangwan)
#### Post date: [January 23, 2024, 10:52am UTC](https://discuss.elastic.co/t/logstash-cpu-usage-is-very-high/351619/1 "2024-01-23T10:52:19Z")

</div>

Logstash CPU usage is up to 90% and assuming this would increase with data growth.  
From the Application side seems everything fine. How to solve this issue in my project?

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [January 23, 2024, 12:29pm UTC](https://discuss.elastic.co/t/logstash-cpu-usage-is-very-high/351619/2 "2024-01-23T12:29:38Z")

</div>

Hello and welcome,

You need to provide more context, what are the specs for your logstash server? How many CPU and RAM?

What are your inputs? Please share your logstash configuration.

---

<div class="post-metadata">

### Author: ![Gadapa\_Vasundhara](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gadapa_vasundhara/32/131201_2.png) [@Gadapa\_Vasundhara](https://discuss.elastic.co/u/Gadapa_Vasundhara)
#### Post date: [January 29, 2024, 6:05pm UTC](https://discuss.elastic.co/t/logstash-cpu-usage-is-very-high/351619/3 "2024-01-29T18:05:40Z")

</div>

[Passing Current time in Logstash input plugin 'exec' for executing API in curl - #4 by Badger](https://discuss.elastic.co/t/passing-current-time-in-logstash-input-plugin-exec-for-executing-api-in-curl/243933/4) you help me on this

---

<div class="post-metadata">

### Author: ![Manoj\_Sangwan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/manoj_sangwan/32/131031_2.png) [@Manoj\_Sangwan](https://discuss.elastic.co/u/Manoj_Sangwan)
#### Post date: [January 30, 2024, 4:56am UTC](https://discuss.elastic.co/t/logstash-cpu-usage-is-very-high/351619/4 "2024-01-30T04:56:32Z")

</div>

I have to instance of RAM with 16GB each and each instance assigned two CPU.

Total 32K data EC processed during this 30min interval.  
I have compared data/Volume and CPU use on two different environments and noticed on impacted env cpu spike is high on both the nodes while on another cpu spike is high on only one node.  
In logstash configuration what exactly you need, pls confirm?

---

<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: [February 27, 2024, 4:56am UTC](https://discuss.elastic.co/t/logstash-cpu-usage-is-very-high/351619/5 "2024-02-27T04:56:47Z")

</div>

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