# How do I decide or evaluate the system/memory requirements for Logstash

**URL:** <https://discuss.elastic.co/t/how-do-i-decide-or-evaluate-the-system-memory-requirements-for-logstash/247607>\
**Category:** Logstash\
**Created:** [September 4, 2020, 11:16pm UTC](https://discuss.elastic.co/t/how-do-i-decide-or-evaluate-the-system-memory-requirements-for-logstash/247607 "2020-09-04T23:16:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashish1101](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ashish1101/32/75147_2.png) [@Ashish1101](https://discuss.elastic.co/u/Ashish1101)\
**Post date:** [September 4, 2020, 11:16pm UTC](https://discuss.elastic.co/t/how-do-i-decide-or-evaluate-the-system-memory-requirements-for-logstash/247607/1 "2020-09-04T23:16:26Z")

</div>

If I want to use logstash to collect logs in from server how to decide how much memory and disk space will be required for it?

If you have any helpful links that are also welcome.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [September 4, 2020, 11:29pm UTC](https://discuss.elastic.co/t/how-do-i-decide-or-evaluate-the-system-memory-requirements-for-logstash/247607/2 "2020-09-04T23:29:56Z")

</div>

You test it and see. Personally I generally run logstash with a 400 MB heap. I know some folks will give it 4 or even 8 GB.

If you are configuring http\_static loaders that load hundreds of megabytes or even gigabytes of database records into cache then you will need the memory to hold that. If you are just grokking fields out of web server logs, not so much.

Disk space will basically be the installed application code and the log files. Are you keeping the logstash logs for a week or a year? One will use 50 times as much space as the other. Then there are cases (a file input scanning a million files) where a sincedb might be a noticeable size.

---

<div class="post-metadata">

**Author:** ![Ashish1101](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ashish1101/32/75147_2.png) [@Ashish1101](https://discuss.elastic.co/u/Ashish1101)\
**Post date:** [September 4, 2020, 11:34pm UTC](https://discuss.elastic.co/t/how-do-i-decide-or-evaluate-the-system-memory-requirements-for-logstash/247607/3 "2020-09-04T23:34:32Z")

</div>

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:** [October 2, 2020, 11:34pm UTC](https://discuss.elastic.co/t/how-do-i-decide-or-evaluate-the-system-memory-requirements-for-logstash/247607/4 "2020-10-02T23:34:51Z")

</div>

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