Open dlvenable opened 1 year ago
Better yet, support:
path_prefix: "events/${date_time_format(eventTime, "year=YYYY/month=MM/day=DD")}/"
Will this feature come to 2.9? If no, what is expected timeline? Because I can wait a month/end of summer. However, if this feature will take more time, I'd rather find alternatives. Thank for reply in advance.
We will add this feature by month end in the product.
spoke with @dlvenable and I will be working on this
Is your feature request related to a problem? Please describe.
We would like to support Hadoop partitions in the S3 sink. For example, we may wish to write an object to the following key path:
Describe the solution you'd like
Provide a new Data Prepper expression method to format a date-time as desired.
You could achieve the above example using a configuration like the following:
Describe alternatives you've considered (Optional)
One alternative is to update the
date
processor to create formatted strings. This would mean writing to the Event, but the user doesn't necessarily want the data in the S3 object. It could write to the metadata instead.Another alternative is to make a new special syntax. But, we already have a functions concept. So I think we should build on this rather than try to make some new syntax.
Additional context
See https://github.com/opensearch-project/data-prepper/issues/3310#issuecomment-1747508402 from #3310.