# Validating .conf file

**URL:** <https://discuss.elastic.co/t/validating-conf-file/29939>\
**Category:** Logstash\
**Created:** [September 24, 2015, 7:38pm UTC](https://discuss.elastic.co/t/validating-conf-file/29939 "2015-09-24T19:38:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Didier](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@Didier](https://discuss.elastic.co/u/Didier)\
**Post date:** [September 24, 2015, 7:38pm UTC](https://discuss.elastic.co/t/validating-conf-file/29939/1 "2015-09-24T19:38:46Z")

</div>

Hello,

We wrote our first configuration file for a type of log and we would like to test out our code before moving along further. What is the procedure to test it out?

Do I run logstash, and then run the a GET command in ElasticSearch / Marvel? If so, what is the exact command?

Else, is there a 3rd party tool that we can use to test out part of our code?

Regards,

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [September 24, 2015, 8:14pm UTC](https://discuss.elastic.co/t/validating-conf-file/29939/2 "2015-09-24T20:14:14Z")

</div>

I'd grab some representative lines from a real log file and feed them to Logstash via a stdin input and the actual filters you're planning on using. Use a `stdout { codec => rubydebug }` output to see if you get what you expect.

I'm working on a tool to write tests for filter configurations but it's at least weeks away.

---

<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:** [July 6, 2017, 5:28am UTC](https://discuss.elastic.co/t/validating-conf-file/29939/3 "2017-07-06T05:28:05Z")

</div>


