Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Add option to not apply split filter if new batch size approaches memory limit

Open
#50 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
ruby

Research direction

Start by reviewing the split filter implementation and the linked Logstash change introducing pipeline.batch.max_output_size. Clarify how event memory is estimated, the memory threshold and configuration behavior before choosing an approach. Done should include a defined safeguard for oversized split batches and tests covering the relevant memory-limit cases.

Written by the indexing model from the issue text.

Description

enhancement status:needs-triage

Split filters can sometimes cause Out of Memory errors if they significantly increase the size of a pipeline batch. This is either due to a filter multiplying the number of events or to the filter increasing the size of individual events.

We've added a config option pipeline.batch.max_output_size to Logstash that, when set, will divide a batch into chunks to be sent to the outputs. This mitigates some OOM errors but work could also be done in the split filter itself to mitigate the errors.

One idea is to call estimateMemory on each event and then multiply that by the split factor, and compare the number to memory size. We could refuse to split if event_size*factor > 50% heap size
This idea would add an overhead but it might be worth it.

Dominant language
Ruby
Stars
6
Forks
29
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from logstash-plugins/logstash-filter-split

All issues in logstash-plugins/logstash-filter-split

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.