# How to check if pipeline execution completed in Logstash

**URL:** https://discuss.elastic.co/t/how-to-check-if-pipeline-execution-completed-in-logstash/136870
**Category:** Logstash
**Created:** [June 21, 2018, 1:07pm UTC](https://discuss.elastic.co/t/how-to-check-if-pipeline-execution-completed-in-logstash/136870 "2018-06-21T13:07:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Somnath\_Pal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/somnath_pal/32/11420_2.png) [@Somnath\_Pal](https://discuss.elastic.co/u/Somnath_Pal)
#### Post date: [June 21, 2018, 1:07pm UTC](https://discuss.elastic.co/t/how-to-check-if-pipeline-execution-completed-in-logstash/136870/1 "2018-06-21T13:07:10Z")

</div>

We are using logstash 6.0 and in log it shows scheduled pipeline running, but how do I know if current run - input - filter - output has completed? Does following input JDBC INFO message with timespent is conclusion for the completion? Can this is be done using pipeline monitoring API? Like how many iterations, how much time spent etc per execution?

[2018-05-25T15:03:01,472][INFO][logstash.pipeline] Starting pipeline {:pipeline\_id=\>"org\_migration", "pipeline.workers"=\>3, "pipeline.batch.size"=\>125, "pipeline.batch.delay"=\>5, "pipeline.max\_inflight"=\>375, :thread=\>"#\<Thread:0x3d3567ad@D:/logstash-6.0.0/logstash-core/lib/logstash/pipeline.rb:290 run\>"}  
[2018-05-25T15:03:01,641][INFO][logstash.pipeline] Pipeline started {"pipeline.id"=\>"org\_migration"}  
[2018-05-25T15:03:01,657][INFO][logstash.agent] Pipelines running {:count=\>1, :pipelines=\>["org\_migration"]}  
[2018-05-25T15:05:05,604][INFO][logstash.inputs.jdbc] (0.454000s) select f1, f2 from tab  
[2018-05-25T15:10:03,254][INFO][logstash.inputs.jdbc] (0.232000s) select f1, f2 from tab  
[2018-05-25T15:15:02,778][INFO][logstash.inputs.jdbc] (0.232000s) select f1, f2 from tab

---

<div class="post-metadata">

### Author: ![Somnath\_Pal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/somnath_pal/32/11420_2.png) [@Somnath\_Pal](https://discuss.elastic.co/u/Somnath_Pal)
#### Post date: [June 27, 2018, 6:16am UTC](https://discuss.elastic.co/t/how-to-check-if-pipeline-execution-completed-in-logstash/136870/2 "2018-06-27T06:16:33Z")

</div>

Well our observation - even if the the pipeline prints this log with time taken, still pipeline out put grows which means this time is not ideal to count pipeline time taken and not to conclude pipeline ended  
Ref: [https://www.elastic.co/guide/en/logstash/6.0/node-stats-api.html#pipeline-stats](https://www.elastic.co/guide/en/logstash/6.0/node-stats-api.html#pipeline-stats)

But is there any (or upcoming) API to check if pipeline execution for a given iteration is over and metrics for the same?

---

<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: [July 25, 2018, 6:16am UTC](https://discuss.elastic.co/t/how-to-check-if-pipeline-execution-completed-in-logstash/136870/3 "2018-07-25T06:16:45Z")

</div>

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