# Logstash pipeline execution order

**URL:** <https://discuss.elastic.co/t/logstash-pipeline-execution-order/240539>\
**Category:** Logstash\
**Created:** [July 9, 2020, 2:04pm UTC](https://discuss.elastic.co/t/logstash-pipeline-execution-order/240539 "2020-07-09T14:04:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tbege](https://avatars.discourse-cdn.com/v4/letter/t/73ab20/32.png) [@tbege](https://discuss.elastic.co/u/tbege)\
**Post date:** [July 9, 2020, 2:04pm UTC](https://discuss.elastic.co/t/logstash-pipeline-execution-order/240539/1 "2020-07-09T14:04:01Z")

</div>

Hello,

I am working on a sync mechanism between a DB2 database and Elasticsearch, I am transporting the data with the JDBC plugin.  
However, I am running into the issue of the pipeline order, meaning:

- I have 3 masterdata tables that I need to transport first
- after that I want to transport my "main" table data and use the Elasticsearch "enrich" filter to query data from the previous 3

No matter how I declare my pipelines, they always run in the same time, I would like to avoid this somehow...  
Is there a possibility to do this?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [July 9, 2020, 4:54pm UTC](https://discuss.elastic.co/t/logstash-pipeline-execution-order/240539/2 "2020-07-09T16:54:19Z")

</div>

> [@tbege](#):
>
> No matter how I declare my pipelines, they always run in the same time, I would like to avoid this somehow...  
> Is there a possibility to do this?

Not as far as I know.

---

<div class="post-metadata">

**Author:** ![tbege](https://avatars.discourse-cdn.com/v4/letter/t/73ab20/32.png) [@tbege](https://discuss.elastic.co/u/tbege)\
**Post date:** [July 15, 2020, 4:17am UTC](https://discuss.elastic.co/t/logstash-pipeline-execution-order/240539/3 "2020-07-15T04:17:38Z")

</div>

I ended up using tags so I can differentiate the data and I use schedule to import them one after the other at specific times so I have everything in place.

---

<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:** [August 12, 2020, 4:17am UTC](https://discuss.elastic.co/t/logstash-pipeline-execution-order/240539/4 "2020-08-12T04:17:40Z")

</div>

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