opensearch-project / opensearch-project/data-prepper

Support dynamic indices with more granular time-based partitions

Open
#3,558 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
374
Forks
355
Avg merge
3d 18h
Merged PRs (30d)
8

Description

Is your feature request related to a problem? Please describe.
As a user of the OpenSearch sink, I would like to roll over my indices with custom time durations, rather than just those provided by the JavaDateTime format (https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html). For example, I would like to either roll over indices every 2 days, or every 6 hours, instead of being forced to use granularity of 1 day or 1 hour only.

Describe the solution you'd like
The ability to create dynamic indices and rollover with specific time patterns, but without the restriction of using a multiple of 1 for hours and days.

Describe alternatives you've considered (Optional)
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Contributor guide

Open the contributing guide

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.

Research direction

Start by tracing the OpenSearch sink's dynamic-index and rollover entry points, then review how JavaDateTime currently determines time-based granularity. Done means users can configure non-unit durations such as two days or six hours without the current one-day or one-hour restriction, with behavior verified by the relevant tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, search
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.