# Is it possible to dynamically edit a logstash config file from command line on Windows PC?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-dynamically-edit-a-logstash-config-file-from-command-line-on-windows-pc/159218>\
**Category:** Logstash\
**Created:** [December 3, 2018, 4:19pm UTC](https://discuss.elastic.co/t/is-it-possible-to-dynamically-edit-a-logstash-config-file-from-command-line-on-windows-pc/159218 "2018-12-03T16:19:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Preeti\_Duraipandian](https://avatars.discourse-cdn.com/v4/letter/p/ecc23a/32.png) [@Preeti\_Duraipandian](https://discuss.elastic.co/u/Preeti_Duraipandian)\
**Post date:** [December 3, 2018, 4:19pm UTC](https://discuss.elastic.co/t/is-it-possible-to-dynamically-edit-a-logstash-config-file-from-command-line-on-windows-pc/159218/1 "2018-12-03T16:19:46Z")

</div>

Hello, I want 6 or 7 config files which are largely similar except for a few changes in the fields including the statement. Is it possible to keep the files similar and give the changed variable values from the command line.  
If not, I would like to write a script in some other language say Python. In that case what should be input file format?

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:** [December 31, 2018, 4:19pm UTC](https://discuss.elastic.co/t/is-it-possible-to-dynamically-edit-a-logstash-config-file-from-command-line-on-windows-pc/159218/2 "2018-12-31T16:19:50Z")

</div>

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