# Adjust resources for a memory-heavy logstash filter

**URL:** <https://discuss.elastic.co/t/adjust-resources-for-a-memory-heavy-logstash-filter/85842>\
**Category:** Logstash\
**Created:** [May 16, 2017, 12:51am UTC](https://discuss.elastic.co/t/adjust-resources-for-a-memory-heavy-logstash-filter/85842 "2017-05-16T00:51:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ariels](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ariels/32/18235_2.png) [@ariels](https://discuss.elastic.co/u/ariels)\
**Post date:** [May 16, 2017, 12:51am UTC](https://discuss.elastic.co/t/adjust-resources-for-a-memory-heavy-logstash-filter/85842/1 "2017-05-16T00:51:28Z")

</div>

Hi,

I'm writing a custom filter that reads from a file and generates potentially huge amount of events (based on how many lines it contains), where each line is translated to a yielded event.  
With default settings, it works well for a rather small files, but chokes for 100m+.  
How do I increase the resources to allow it to handle large amounts of data processed in the filter?  
LS\_HEAP\_SIZE doesn't seem to be related.

Using logstash 5.3.1.

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:** [June 14, 2017, 5:02pm UTC](https://discuss.elastic.co/t/adjust-resources-for-a-memory-heavy-logstash-filter/85842/3 "2017-06-14T17:02:24Z")

</div>

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