# Testing ruby filter for logstash

**URL:** <https://discuss.elastic.co/t/testing-ruby-filter-for-logstash/277599>\
**Category:** Logstash\
**Created:** [July 1, 2021, 9:08pm UTC](https://discuss.elastic.co/t/testing-ruby-filter-for-logstash/277599 "2021-07-01T21:08:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![blackberrySherbet](https://avatars.discourse-cdn.com/v4/letter/b/7cd45c/32.png) [@blackberrySherbet](https://discuss.elastic.co/u/blackberrySherbet)\
**Post date:** [July 1, 2021, 9:08pm UTC](https://discuss.elastic.co/t/testing-ruby-filter-for-logstash/277599/1 "2021-07-01T21:08:50Z")

</div>

How would you write a test to check if the code described in [Indent any json file nested fields and make it flat](https://discuss.elastic.co/t/indent-any-json-file-nested-fields-and-make-it-flat/194447) (@Badger ) is working?

I am having a hard time using the inline testing framework described in [Ruby filter plugin | Logstash Reference [7.13] | Elastic](https://www.elastic.co/guide/en/logstash/current/plugins-filters-ruby.html) (Where can I find more examples of this?)

---

<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 29, 2021, 9:09pm UTC](https://discuss.elastic.co/t/testing-ruby-filter-for-logstash/277599/2 "2021-07-29T21:09:43Z")

</div>

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