# Check if a pipeline is running with the monitoring APIs?

**URL:** <https://discuss.elastic.co/t/check-if-a-pipeline-is-running-with-the-monitoring-apis/286022>\
**Category:** Logstash\
**Created:** [October 6, 2021, 11:52am UTC](https://discuss.elastic.co/t/check-if-a-pipeline-is-running-with-the-monitoring-apis/286022 "2021-10-06T11:52:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nico127](https://avatars.discourse-cdn.com/v4/letter/n/9de053/32.png) [@nico127](https://discuss.elastic.co/u/nico127)\
**Post date:** [October 6, 2021, 11:52am UTC](https://discuss.elastic.co/t/check-if-a-pipeline-is-running-with-the-monitoring-apis/286022/1 "2021-10-06T11:52:09Z")

</div>

Is there a way to know if a pipeline has failed with the [monitoring APIs](https://www.elastic.co/guide/en/logstash/current/monitoring-logstash.html#monitoring) - or any other API?

My issue is that the file output plugin ["freezes" when the target volume is full](https://github.com/logstash-plugins/logstash-output-file/issues/91). Hence, I want my log rotator to check if a pipeline is frozen, and if it is, restart logstash. I thought I could do it with the API, but haven't found the right endpoint.

---

<div class="post-metadata">

**Author:** ![zx8086](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zx8086/32/94917_2.png) [@zx8086](https://discuss.elastic.co/u/zx8086)\
**Post date:** [October 6, 2021, 1:07pm UTC](https://discuss.elastic.co/t/check-if-a-pipeline-is-running-with-the-monitoring-apis/286022/2 "2021-10-06T13:07:50Z")

</div>

What about monitoring via the Metricbeat Module ? Also can you not parse the logs directly to Elasticsearch via the Filebeat Module and alert & trigger on error messages?

> **[Collect Logstash monitoring data with Metricbeat | Logstash Reference \[7.15\]...](https://www.elastic.co/guide/en/logstash/current/monitoring-with-metricbeat.html)**

---

<div class="post-metadata">

**Author:** ![nico127](https://avatars.discourse-cdn.com/v4/letter/n/9de053/32.png) [@nico127](https://discuss.elastic.co/u/nico127)\
**Post date:** [October 6, 2021, 1:26pm UTC](https://discuss.elastic.co/t/check-if-a-pipeline-is-running-with-the-monitoring-apis/286022/3 "2021-10-06T13:26:38Z")

</div>

I don't see how the way I collect the metrics is relevant? I'm under the impression that the information about whether a pipeline is running or not is **not** present in the metrics, **regardless of how they're collected**. What's more, since my end goal is to restart Logstash, I don't really want to do this remotely from ES but rather be directly from the host where Logstash is running.

---

<div class="post-metadata">

**Author:** ![nico127](https://avatars.discourse-cdn.com/v4/letter/n/9de053/32.png) [@nico127](https://discuss.elastic.co/u/nico127)\
**Post date:** [October 20, 2021, 1:38pm UTC](https://discuss.elastic.co/t/check-if-a-pipeline-is-running-with-the-monitoring-apis/286022/4 "2021-10-20T13:38:11Z")

</div>

If anyone has an idea

---

<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:** [November 17, 2021, 1:38pm UTC](https://discuss.elastic.co/t/check-if-a-pipeline-is-running-with-the-monitoring-apis/286022/5 "2021-11-17T13:38:21Z")

</div>

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