# Testing your logstash configuration

**URL:** <https://discuss.elastic.co/t/testing-your-logstash-configuration/53061>\
**Category:** Logstash\
**Created:** [June 16, 2016, 9:54pm UTC](https://discuss.elastic.co/t/testing-your-logstash-configuration/53061 "2016-06-16T21:54:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![boazshor](https://avatars.discourse-cdn.com/v4/letter/b/eada6e/32.png) [@boazshor](https://discuss.elastic.co/u/boazshor)\
**Post date:** [June 16, 2016, 9:54pm UTC](https://discuss.elastic.co/t/testing-your-logstash-configuration/53061/1 "2016-06-16T21:54:59Z")

</div>

Hi,  
I'm new to Logstash.  
I'm working with Logstash 2.3.2.  
I'm trying to write unit tests for my configuration files.  
I wrote a simple test for a simple filter, but when I try to run them using bin\rspec, I'm getting the following error:  
GemNotFound: Could not find benchmark-ips-2.6.1.  
Do I need to install GEM and JRuby in order to run the tests?

---

<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:** [June 17, 2016, 5:31am UTC](https://discuss.elastic.co/t/testing-your-logstash-configuration/53061/2 "2016-06-17T05:31:24Z")

</div>

I would assume so, yes. To test Logstash configuration files I think [https://github.com/magnusbaeck/logstash-filter-verifier](https://github.com/magnusbaeck/logstash-filter-verifier) to be both more convenient and correct than writing rspec tests (caveat: I'm the author of said tool).

---

<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, 4:52am UTC](https://discuss.elastic.co/t/testing-your-logstash-configuration/53061/3 "2017-07-06T04:52:24Z")

</div>


