# Calculate timestamp duration to next document

**URL:** <https://discuss.elastic.co/t/calculate-timestamp-duration-to-next-document/297244>\
**Category:** Logstash\
**Created:** [February 15, 2022, 1:04pm UTC](https://discuss.elastic.co/t/calculate-timestamp-duration-to-next-document/297244 "2022-02-15T13:04:52Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![jannik.b](https://avatars.discourse-cdn.com/v4/letter/j/97f17d/32.png) [@jannik.b](https://discuss.elastic.co/u/jannik.b)\
**Post date:** [February 21, 2022, 4:00pm UTC](https://discuss.elastic.co/t/calculate-timestamp-duration-to-next-document/297244/22 "2022-02-21T16:00:14Z")

</div>

Ah, that's what you meant 😀. But as I understand it, the transform happens only after I have added a file via logstash. How should it be possible to split the transform with logstash afterwards?

---

<div class="post-metadata">

**Author:** ![Hendrik\_Muhs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hendrik_muhs/32/25802_2.png) [@Hendrik\_Muhs](https://discuss.elastic.co/u/Hendrik_Muhs)\
**Post date:** [February 21, 2022, 4:08pm UTC](https://discuss.elastic.co/t/calculate-timestamp-duration-to-next-document/297244/23 "2022-02-21T16:08:39Z")

</div>

> [@jannik.b](#):
>
> How should it be possible to split the transform with logstash afterwards?

You are right, it's not possible. You can let transform feed into an ingest pipeline, but not to logstash.

The split functionality is a missing feature in ingest: [[Ingest Pipeline] Ability to split documents · Issue #56769 · elastic/elasticsearch · GitHub](https://github.com/elastic/elasticsearch/issues/56769)

---

<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:** [March 21, 2022, 4:09pm UTC](https://discuss.elastic.co/t/calculate-timestamp-duration-to-next-document/297244/24 "2022-03-21T16:09:32Z")

</div>

Closed on March 21, 2022, 4:09pm UTC

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

[Previous page](https://discuss.elastic.co/t/calculate-timestamp-duration-to-next-document/297244.md?page=1)
