# Logstash configuration dynamic management

**URL:** <https://discuss.elastic.co/t/logstash-configuration-dynamic-management/170299>\
**Category:** Logstash\
**Created:** [February 28, 2019, 9:07am UTC](https://discuss.elastic.co/t/logstash-configuration-dynamic-management/170299 "2019-02-28T09:07:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xodn0812](https://avatars.discourse-cdn.com/v4/letter/x/c5a1d2/32.png) [@xodn0812](https://discuss.elastic.co/u/xodn0812)\
**Post date:** [February 28, 2019, 9:07am UTC](https://discuss.elastic.co/t/logstash-configuration-dynamic-management/170299/1 "2019-02-28T09:07:06Z")

</div>

I run logstash in the following manner.  
bin/logstash -f config/log\_test.conf --config.reload.automatic

Contents:  
input{~~}  
filter{~~~}  
output{  
if {  
~~~~~  
} else if {  
~~~~~~~  
}  
}

I want to dynamically change the contents of log\_test.conf.

This way, the log\_test.conf file is modified, but it can not be managed remotely (REST).

If i can set the above logic on the pipeline in logstash.yml, i can manage it with REST. Using the function "Centralized Pipeline Management" [https://www.elastic.co/guide/en/logstash/current/logstash-centralized-pipeline-management.html](https://www.elastic.co/guide/en/logstash/current/logstash-centralized-pipeline-management.html)

However, "Centralized Pipeline Management" can not contain complex logic such as if - else, filter.

How can I solve this problem ??

---

<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 28, 2019, 9:12am UTC](https://discuss.elastic.co/t/logstash-configuration-dynamic-management/170299/2 "2019-03-28T09:12:06Z")

</div>

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