# Logstash run once from command line

**URL:** <https://discuss.elastic.co/t/logstash-run-once-from-command-line/212744>\
**Category:** Logstash\
**Created:** [December 21, 2019, 4:44pm UTC](https://discuss.elastic.co/t/logstash-run-once-from-command-line/212744 "2019-12-21T16:44:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![matandobr](https://avatars.discourse-cdn.com/v4/letter/m/d26b3c/32.png) [@matandobr](https://discuss.elastic.co/u/matandobr)\
**Post date:** [December 21, 2019, 4:44pm UTC](https://discuss.elastic.co/t/logstash-run-once-from-command-line/212744/1 "2019-12-21T16:44:01Z")

</div>

Hey guys,  
I want to write a simple application that would help me debug my Logstash configurations.  
I find it pretty annoying to modify configuration files in my server and restarting the Logstash service each time I want to see how my changes affect the output.  
The best I came with is to run the logstash.bat with custom configuration file and make each configuration to output to a log file but this is still annoying because I need to restart it each time I make changes and it takes some time to load.  
This is OK but still not good enough, the best case would be to be able to run Logstash as a standalone tool like that -  
logstash\_stand\_alone.exe [config\_file] [input\_log\_file] [output\_log\_file]  
Any ideas?  
Thanks ahead 🙂

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [December 21, 2019, 7:16pm UTC](https://discuss.elastic.co/t/logstash-run-once-from-command-line/212744/2 "2019-12-21T19:16:57Z")

</div>

Does the --config.reload.automatic command line option help?

---

<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:** [January 18, 2020, 7:17pm UTC](https://discuss.elastic.co/t/logstash-run-once-from-command-line/212744/3 "2020-01-18T19:17:05Z")

</div>

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