# Debug logstash pipeline before save changes

**URL:** <https://discuss.elastic.co/t/debug-logstash-pipeline-before-save-changes/172168>\
**Category:** Logstash\
**Created:** [March 13, 2019, 2:29pm UTC](https://discuss.elastic.co/t/debug-logstash-pipeline-before-save-changes/172168 "2019-03-13T14:29:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![javila](https://avatars.discourse-cdn.com/v4/letter/j/ecd19e/32.png) [@javila](https://discuss.elastic.co/u/javila)\
**Post date:** [March 13, 2019, 2:29pm UTC](https://discuss.elastic.co/t/debug-logstash-pipeline-before-save-changes/172168/1 "2019-03-13T14:29:18Z")

</div>

Hi there,

I'm wondering how can I validate/verify that the changes I've added to my Logstash pipeline are good? Is it possible to have some sort of debug option in this section so when new lines are added we can see whether or not there is an error with it?.

I find this really important and handy in order to double-check the congruence of this file before save it and affect the data parsing.

If it does not exist... yet... I'd appreciate if someone can share a workaround/alternative to address this as well. 🙂

Thanks!

---

<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:** [March 13, 2019, 2:52pm UTC](https://discuss.elastic.co/t/debug-logstash-pipeline-before-save-changes/172168/2 "2019-03-13T14:52:44Z")

</div>

Does the --config.test\_and\_exit [option](https://www.elastic.co/guide/en/logstash/6.6/running-logstash-command-line.html) help you?

---

<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:** [April 10, 2019, 2:52pm UTC](https://discuss.elastic.co/t/debug-logstash-pipeline-before-save-changes/172168/3 "2019-04-10T14:52:59Z")

</div>

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