# Logstash Pipeline Config API

**URL:** <https://discuss.elastic.co/t/logstash-pipeline-config-api/288087>\
**Category:** Logstash\
**Created:** [October 31, 2021, 9:43am UTC](https://discuss.elastic.co/t/logstash-pipeline-config-api/288087 "2021-10-31T09:43:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cryonix\_pod](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cryonix_pod/32/81675_2.png) [@cryonix\_pod](https://discuss.elastic.co/u/cryonix_pod)\
**Post date:** [October 31, 2021, 9:43am UTC](https://discuss.elastic.co/t/logstash-pipeline-config-api/288087/1 "2021-10-31T09:43:11Z")

</div>

Due to the different flow of traffic I need to change the value of `pipeline.workers` attribute dynamically. But currently I am using `sed` and other bash tool to edit the `pipeline.yaml` file and update the value.

Is there any way I can do the same with the logstash API?

I have tried Elasticsearch API endpoint but it is not working for me maybe because I am using OSS version.

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [October 31, 2021, 3:03pm UTC](https://discuss.elastic.co/t/logstash-pipeline-config-api/288087/2 "2021-10-31T15:03:45Z")

</div>

> [@cryonix\_pod](#):
>
> Is there any way I can do the same with the logstash API?

There is not, the Logstash REST Endpoint is for [monitoring only](https://www.elastic.co/guide/en/logstash/7.15/monitoring-logstash.html#monitoring), you can't update settings for pipelines, the only thing that you can update is the log level for some loggers, but not pipeline settings.

---

<div class="post-metadata">

**Author:** ![cryonix\_pod](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cryonix_pod/32/81675_2.png) [@cryonix\_pod](https://discuss.elastic.co/u/cryonix_pod)\
**Post date:** [October 31, 2021, 6:00pm UTC](https://discuss.elastic.co/t/logstash-pipeline-config-api/288087/3 "2021-10-31T18:00:50Z")

</div>

I see, thanks.

---

<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 28, 2021, 6:01pm UTC](https://discuss.elastic.co/t/logstash-pipeline-config-api/288087/4 "2021-11-28T18:01:28Z")

</div>

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